Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BouncyCastle PGP ????

843811Jun 12 2006 — edited Jun 12 2006
Hi!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2006
Added on Jun 12 2006
0 comments
224 views