summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaif S. Naffah <raif@swiftdsl.com.au>2006-01-26 19:23:57 +0000
committerRaif S. Naffah <raif@swiftdsl.com.au>2006-01-26 19:23:57 +0000
commit33b35e99275e3f5dae33796c60139520acde41c0 (patch)
tree66bb97cb72d1a6232fabb78b1e2d28fc7b1630bf
parentffc0e38d4900abc9855f196f6cbd0d5f8de8fb7e (diff)
downloadclasspath-33b35e99275e3f5dae33796c60139520acde41c0.tar.gz
2006-01-27 Raif S. Naffah <raif@swiftdsl.com.au>
PR classpath/25981 * gnu/javax/crypto/jce/GnuCrypto.java (run): Added KeyGenerator entries.
-rw-r--r--ChangeLog5
-rw-r--r--gnu/javax/crypto/jce/GnuCrypto.java25
2 files changed, 30 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c566f826..ddaa04404 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-27 Raif S. Naffah <raif@swiftdsl.com.au>
+
+ PR classpath/25981
+ * gnu/javax/crypto/jce/GnuCrypto.java (run): Added KeyGenerator entries.
+
2006-01-26 Mark Wielaard <mark@klomp.org>
Fixes bug #25970 reported by Michael Kay <mike@saxonica.com>
diff --git a/gnu/javax/crypto/jce/GnuCrypto.java b/gnu/javax/crypto/jce/GnuCrypto.java
index 276f61ea3..9a8915cf4 100644
--- a/gnu/javax/crypto/jce/GnuCrypto.java
+++ b/gnu/javax/crypto/jce/GnuCrypto.java
@@ -410,6 +410,31 @@ public final class GnuCrypto extends Provider
put("AlgorithmParameters.BlockCipherParameters",
gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName());
+
+ // KeyGenerator Adapter implementations
+ put("KeyGenerator.Anubis",
+ gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Blowfish",
+ gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Cast5",
+ gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName());
+ put("KeyGenerator.DES",
+ gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Khazad",
+ gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Rijndael",
+ gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Serpent",
+ gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.Square",
+ gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName());
+ put("KeyGenerator.TripleDES",
+ gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName());
+ put("Alg.Alias.KeyGenerator.AES", "Rijndael");
+ put("Alg.Alias.KeyGenerator.DESede", "TripleDES");
+ put("Alg.Alias.KeyGenerator.3-DES", "TripleDES");
+ put("Alg.Alias.KeyGenerator.3DES", "TripleDES");
+
// MAC
put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName());
put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName());