This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Is MD5 algorithm supported in libgcj?
- To: "java-discuss at sourceware dot cygnus dot com" <java-discuss at sourceware dot cygnus dot com>
- Subject: Is MD5 algorithm supported in libgcj?
- From: arajesh <arajesh at india dot adventnet dot com>
- Date: Wed, 19 Jul 2000 11:45:53 +0530
- Organization: AdventNet Inc.
- Reply-To: arajesh at india dot adventnet dot com
Hi all,
I am using the latest GCJ compiler and libgcj in the
ag-tools-1-5.i386.rpm downloaded from one of the sourceware.cygnus.com
ftp mirror site. I am using the MD5 message digest algorithm for
obtaining keys from passwords in my program. But i get the following
run-time error (stack trace) when i run my binary executable:
java.security.NoSuchAlgorithmException: MD5
at 0x080b96a9: java::lang::Throwable::Throwable(java::lang::String *)
(/decepticon/starscream/green/r/src/redhat/BUILD/ag-tools/obj-ag-tools-i386-linux/i386-redhat-linux/libjava/../../../egcs/libjava/java/lang/Throwable.java:153)
at 0x080ca0a4:
java::security::MessageDigest::getInstance(java::lang::String *)
(/decepticon/starscream/green/r/src/redhat/BUILD/ag-tools/obj-ag-tools-i386-linux/i386-redhat-linux/libjava/../../../egcs/libjava/java/security/MessageDigest.java:36)
at 0x080865eb:
com::adventnet::snmp::snmp2::usm::USMUtils::getDigestImpl(int)
(/home/guest/gcj43.1/examples/../classes/com/adventnet/snmp/snmp2/usm/USMUtils.class:0)
at 0x080878bd:
com::adventnet::snmp::snmp2::usm::USMUtils::password_to_key(int,
JArray<char> *, int, JArray<char> *)
(this is only the partial output of the stacktrace)
Here the com.adventnet.snmp.snmp2.* are my classes. I am also getting
the same error in the latest stable version 2.95.1 of libgcj and the GCJ
compiler. I also compiled with the cryptix extensions and added Security
Providers for the Digest Algorithms in my main method. But even then i
am getting the same error. Could anybody please help me regarding this.
Regards
Rajesh