From: Allan R. <ar...@ex...> - 2006-12-19 19:58:27
|
We had a lot of trouble going to jdk 1.5 because of the order of the security providers changed, putting a Sun RSA implementation in front of the Cryptix RSA implementation. The workaround that worked for us is to insert Cryptix provider in FRONT of the intruder before getting the cipher instance. Here's how that can be done in java: java.security.Security.insertProviderAt(new cryptix.provider.Cryptix(), 1); cipher = xjava.security.Cipher.getInstance("RSA"); If you leave the security provider list as is, or insert Cryptix at the end, you will get an erroneous provider. This assumes dynamic provider addition; I don't have any advice if you must use static provider addition. Hope this helps. Allan Rofer _____ From: cry...@li... [mailto:cry...@li...] On Behalf Of Nazli Soltani Sent: Tuesday, December 19, 2006 7:02 AM To: cry...@li... Subject: [Cryptix-users] cryptix with jdk1.5.0_09 Hello, i just wanted to test an example with cryptix, which i found on : http://www.ztt.fh-worms.de/de/others/sem/unsorted/cryptix/key_code.html just only to create an RSA key pair. I downloaded cryptix version 3.2.0. Then I added the provider to java Security, but doesn't work. Java cannot resole the import like : import cryptix.security.rsa.*; import cryptix.security.*; import cryptix.math.*; Can anyone please help me? Should i change the codes for the new cryptix version? thanks a lot, Nazli __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |