Commit 9c31fc1b by R. A. Rivas Diaz Committed by Tom Tromey

SHA.java (engineGetDigestLength): Return 20.

2002-11-04  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.

From-SVN: r58807
parent 5dbc91f5
2002-11-04 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.
2002-11-03 Tom Tromey <tromey@redhat.com> 2002-11-03 Tom Tromey <tromey@redhat.com>
* java/lang/ClassLoader.java (loadClass): Call loadClass on * java/lang/ClassLoader.java (loadClass): Call loadClass on
......
...@@ -77,7 +77,7 @@ public class MD5 extends MessageDigest implements Cloneable ...@@ -77,7 +77,7 @@ public class MD5 extends MessageDigest implements Cloneable
public int engineGetDigestLength() public int engineGetDigestLength()
{ {
return 20; return 16;
} }
// Intialize the A,B,C,D needed for the hash // Intialize the A,B,C,D needed for the hash
......
/* SHA.java -- Class implementing the SHA-1 algorithm as specified in [1]. /* 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. This file is part of GNU Classpath.
...@@ -58,7 +58,7 @@ public class SHA extends MessageDigest implements Cloneable ...@@ -58,7 +58,7 @@ public class SHA extends MessageDigest implements Cloneable
public int engineGetDigestLength() public int engineGetDigestLength()
{ {
return 16; return 20;
} }
public void engineUpdate (byte b) public void engineUpdate (byte b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment