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]

Re: gnu security


Lars Andersen wrote:

MessageDigest.getInstance("SHA-1","GNU");

generates an NoSuchAlgorithmException.

Browsing through the source, I realize the name of this algorithm is
"SHA" in the gnu provider, as opposed to "SHA-1" in the sun provider.

The problem is that the Cryptography engine aliasing mechanism ( see http://java.sun.com/j2se/1.4/docs/guide/security/HowToImplAProvider.html#Aliases ) is not implemented in our java.security code, so the SHA-1 -> SHA alias defined in the Gnu provider is not recognised. I started working on a patch last night but it might be a few days until I can test it.

regards

Bryce.



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