From 9c31fc1bd6a565026daed2950cdcd6901cb69224 Mon Sep 17 00:00:00 2001 From: "R. A. Rivas Diaz" Date: Tue, 5 Nov 2002 04:12:04 +0000 Subject: [PATCH] SHA.java (engineGetDigestLength): Return 20. 2002-11-04 R. A. Rivas Diaz * gnu/java/security/provider/SHA.java (engineGetDigestLength): Return 20. * gnu/java/security/provider/MD5.java (engineGetDigestLength): Return 16. From-SVN: r58807 --- libjava/ChangeLog | 7 +++++++ libjava/gnu/java/security/provider/MD5.java | 2 +- libjava/gnu/java/security/provider/SHA.java | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1267d7683ae..0ec5797d2b4 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +2002-11-04 R. A. Rivas Diaz + + * gnu/java/security/provider/SHA.java (engineGetDigestLength): + Return 20. + * gnu/java/security/provider/MD5.java (engineGetDigestLength): + Return 16. + 2002-11-03 Tom Tromey * java/lang/ClassLoader.java (loadClass): Call loadClass on diff --git a/libjava/gnu/java/security/provider/MD5.java b/libjava/gnu/java/security/provider/MD5.java index 9a789dfa2e2..41956fc87e1 100644 --- a/libjava/gnu/java/security/provider/MD5.java +++ b/libjava/gnu/java/security/provider/MD5.java @@ -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 diff --git a/libjava/gnu/java/security/provider/SHA.java b/libjava/gnu/java/security/provider/SHA.java index 90459466a89..6b8d3ba5c1e 100644 --- a/libjava/gnu/java/security/provider/SHA.java +++ b/libjava/gnu/java/security/provider/SHA.java @@ -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)