wood burning stoves 2.0*
The moose likes Java in General and the fly likes crypto Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "crypto" Watch "crypto" New topic


Damien Malone

Joined: Jul 12, 2001
Posts: 7
I am trying to get some assymetric algorithm working. I have tried RSA on cryptix and bouncy castle and get the following error
java.security.NoSuchAlgorithmException: Algorithm RSA not available
also using cryptix I get the same thing with ElGamel. I have teh provider set in the security class and have had no problem with DESede. The documentation seems to say these algoithms are supported supported. Is it that there is some mechanism so that these do not work outside of north america, am I doing something wrong, or do these simply not support these algorithms. If not, can anyone suggest an assymetric algorithm than I can get use that is freely available.
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
I am also using Cryptix for my crypto stuff and it works fine.
To install the provider you can go two ways: either invoke
Security.addProvider(new cryptix.provider.Cryptix());
or hardcode it in the ${JRE}/jre/lib/security/java.security file under the security.provider.x key (where x is a number).
But by reading your post, it seems to me that you are doing that well.
There may be a problem with exportation policy of strong crypto and I know from somewhere that you have to install something in order for those things to work. The file is called US_export_policy.jar and has to be placed in the same directory as the java.security file. but I don't remember where I downloaded that file.

Valentin Crettaz
Sun Certified Programmer for Java 2 Platform

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link: http://aspose.com/file-tools
subject: crypto
Similar Threads
What is the difference between Pubkey and Cipher?
Encryption with Java
java JCE version compatibility
JCA Providers implementing RSA or DSA Encryption