This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]