File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "crypto" Watch "crypto" New topic
Author

crypto

Damien Malone
Greenhorn

Joined: Jul 12, 2001
Posts: 7
Hi
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.
Thanks
Damien
Valentin Crettaz
Gold Digger
Sheriff

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.
HIH

------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: crypto