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
This commit is contained in:
R. A. Rivas Diaz 2002-11-05 04:12:04 +00:00 committed by Tom Tromey
parent 5dbc91f572
commit 9c31fc1bd6
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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>
* java/lang/ClassLoader.java (loadClass): Call loadClass on

View File

@ -77,7 +77,7 @@ public class MD5 extends MessageDigest implements Cloneable
public int engineGetDigestLength()
{
return 20;
return 16;
}
// Intialize the A,B,C,D needed for the hash

View File

@ -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 class SHA extends MessageDigest implements Cloneable
public int engineGetDigestLength()
{
return 16;
return 20;
}
public void engineUpdate (byte b)