Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

crypto

 
Damien Malone
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic