[kaffe] SHA1PRNG fix
Timothy Stack
stack at cs.utah.edu
Mon Jun 3 14:05:36 PDT 2002
bah, i forgot a couple of other security fixes:
Change name of SHA -> SHA-1
Add aliases to the Kaffe provider
tim stack
-------------- next part --------------
Index: SHA.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/kaffe/security/provider/SHA.java,v
retrieving revision 1.2
diff -u -r1.2 SHA.java
--- SHA.java 22 Nov 2001 06:21:25 -0000 1.2
+++ SHA.java 3 Jun 2002 20:57:57 -0000
@@ -17,7 +17,7 @@
public final class SHA extends UpdateDigest {
- public static final String DIGEST_NAME = "SHA";
+ public static final String DIGEST_NAME = "SHA-1";
public static final int DIGEST_LENGTH = 20;
public SHA() {
Index: Kaffe.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/kaffe/security/provider/Kaffe.java,v
retrieving revision 1.3
diff -u -r1.3 Kaffe.java
--- Kaffe.java 4 Jan 2002 05:12:33 -0000 1.3
+++ Kaffe.java 3 Jun 2002 20:57:57 -0000
@@ -39,8 +39,12 @@
"kaffe.security.provider.MD4");
put("MessageDigest.MD5",
"kaffe.security.provider.MD5");
- put("MessageDigest.SHA",
+ put("MessageDigest.SHA-1",
"kaffe.security.provider.SHA");
+ put("Alg.Alias.MessageDigest.SHA1",
+ "SHA-1");
+ put("Alg.Alias.MessageDigest.SHA",
+ "SHA-1");
put("SecureRandom.SHA1PRNG",
"kaffe.security.provider.SHA1PRNG");
return null;
More information about the kaffe
mailing list