[kaffe] SHA1PRNG fix

Timothy Stack stack@cs.utah.edu
Mon, 3 Jun 2002 15:05:36 -0600 (MDT)


--%--multipart-mixed-boundary-2.22676.1023138336--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


bah, i forgot a couple of other security fixes:

  Change name of SHA -> SHA-1
  Add aliases to the Kaffe provider

tim stack


--%--multipart-mixed-boundary-2.22676.1023138336--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ascii text
Content-Disposition: attachment; filename="ks.diff"

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;

--%--multipart-mixed-boundary-2.22676.1023138336--%--