I'm hoping to use cryptix r3.2.0 for RSA encryption and decryption. I
downloaded, installed, and ran cryptix.test.TestAll, and specifically
cryptix.test.TestRSA. (As Murphy would have it, all tests except the one I
care about - RSA - succeed.) I have tried it in both Java 1.3 and 1.4, with
similar results.
The TestRSA initially failed with this error:
java.security.InvalidParameterException: Modulus size must range from 512 to
2048
The test starts with a key strength of 312 and works up in 128 byte
increments. So, I modified the test to start at 512 (By modifying line 125,
if anyone cares.) With this change, the test gets further but still fails in
the first and all subsequent iterations, with the following errors:
C:\javatools\cryptography
providers\cryptix32-20001002-r3.2.0\src\cryptix\test>java cryptix.test.Tes
tRSA
Running tests for cryptix.test.TestRSA
Test #1 (512-bit modulus)
Generating keypair . . . . Done!
Signing with a 512-bit key using MD2/RSA/PKCS#1...
Error: Throwable Unexpected java.security.InvalidKeyException
java.security.InvalidKeyException: MD2/RSA/PKCS#1: Not an RSA private key
at
cryptix.provider.rsa.Any_RSA_PKCS1Signature.engineInitSign(Any_RSA_PKCS1Sign
ature.java:21
6)
at java.security.Signature.initSign(Signature.java:310)
at cryptix.test.TestRSA.testSignature(TestRSA.java:154)
at cryptix.test.TestRSA.engineTest(TestRSA.java:141)
at cryptix.util.test.BaseTest.test(BaseTest.java:375)
at cryptix.util.test.BaseTest.commandline(BaseTest.java:270)
at cryptix.util.test.BaseTest.commandline(BaseTest.java:259)
at cryptix.test.TestRSA.main(TestRSA.java:107)
Signing with a 512-bit key using MD5/RSA/PKCS#1...
...and this error repeats for each test. Any ideas? Has anyone used cryptix
successfully for encryption/decryption (not signing) with either RSA or
ElGamal?
Thanks,
Ben