Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

crypto

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic