BouncyCastle PGP ????
843811Jun 12 2006 — edited Jun 12 2006Hi!
I am working on a project that requires PGP encryption / decryption. I have downloaded the BouncyCastle PGP libraries version 1.33. I am trying to run the AllTests application in the test folder but I am getting the following error when it is calling PgPKeyRingTest -> Test2 -> k.extractPrivateKey(sec2pass1, "BC").
1) testPGP(org.bouncycastle.openpgp.test.AllTests)junit.framework.AssertionFailedError: PGPKeyRingTest: exception: java.security.InvalidKeyException: Illegal key size
at org.bouncycastle.openpgp.test.AllTests.testPGP(AllTests.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.bouncycastle.openpgp.test.AllTests.main(AllTests.java:32)
I am running Windows XP and using Java jdk1.5.0_06, jce_policy-1_5_0.
Does anyone have any ideas what the problem might be?
Thanks,
Scott.
Message was edited by:
sdever98