This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Small fix for MD5.java
- From: Mark Wielaard <mark at klomp dot org>
- To: java-patches at gcc dot gnu dot org
- Date: 23 Jul 2002 01:49:12 +0200
- Subject: FYI: Small fix for MD5.java
Hi,
The following fixes a bug in MD5.java that made the class unusable.
2002-07-23 Mark Wielaard <mark@klomp.org>
* gnu/java/security/provider/MD5.java: Extends MessageDigest, not
MessageDigestSpi (fixes Classpath bug #783).
I am committing this so people can at least use the class.
Cheers,
Mark
--- gnu/java/security/provider/MD5.java 14 Jul 2002 22:18:35 -0000 1.1
+++ gnu/java/security/provider/MD5.java 22 Jul 2002 23:39:46 -0000
@@ -1,5 +1,5 @@
/* MD5.java -- Class implementing the MD5 algorithm as specified in RFC1321.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -37,14 +37,14 @@
package gnu.java.security.provider;
-import java.security.MessageDigestSpi;
+import java.security.MessageDigest;
/**
This class implements the MD5 algorithm as described in RFC1321.
@see java.security.MessageDigest
*/
-public class MD5 extends MessageDigestSpi implements Cloneable
+public class MD5 extends MessageDigest implements Cloneable
{
private final int W[] = new int[16];
private long bytecount;
@@ -55,7 +55,7 @@
public MD5()
{
- super();
+ super("MD5");
engineReset ();
}