This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
error in engineGetDigestLength for MessageDigest providers
- From: "R. A. Rivas Diaz" <rivasdiaz at yahoo dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 4 Nov 2002 19:59:06 -0800 (PST)
- Subject: error in engineGetDigestLength for MessageDigest providers
the classes:
- gnu.java.security.provider.SHA
and
- gnu.java.security.provider.MD5
have erroneous implementation of the method
- public int engineGetDigestLength()
SHA should return 20 and MD5 should return 16. They are switched.
Can somebody please correct this?
It's easy to see the error, just look at the implementation of
engineDigest() method.
rivas.
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/