This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: security provider fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 04 Nov 2002 21:04:58 -0700
- Subject: Patch: FYI: security provider fixlet
- Reply-to: tromey at redhat dot com
I'm checking this in.
Reported on the main list.
Tom
Index: ChangeLog
from R. A. Rivas Diaz <rivasdiaz@yahoo.com>
* gnu/java/security/provider/SHA.java (engineGetDigestLength):
Return 20.
* gnu/java/security/provider/MD5.java (engineGetDigestLength):
Return 16.
Index: gnu/java/security/provider/MD5.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/security/provider/MD5.java,v
retrieving revision 1.5
diff -u -r1.5 MD5.java
--- gnu/java/security/provider/MD5.java 18 Aug 2002 18:30:09 -0000 1.5
+++ gnu/java/security/provider/MD5.java 5 Nov 2002 04:10:39 -0000
@@ -77,7 +77,7 @@
public int engineGetDigestLength()
{
- return 20;
+ return 16;
}
// Intialize the A,B,C,D needed for the hash
Index: gnu/java/security/provider/SHA.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/security/provider/SHA.java,v
retrieving revision 1.6
diff -u -r1.6 SHA.java
--- gnu/java/security/provider/SHA.java 11 Aug 2002 12:08:03 -0000 1.6
+++ gnu/java/security/provider/SHA.java 5 Nov 2002 04:10:39 -0000
@@ -1,5 +1,5 @@
/* SHA.java -- Class implementing the SHA-1 algorithm as specified in [1].
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -58,7 +58,7 @@
public int engineGetDigestLength()
{
- return 16;
+ return 20;
}
public void engineUpdate (byte b)