|
From: <CH...@Na...> - 2005-12-16 14:44:57
|
Can i get any more lucky...??? Thanks Srini ----- Forwarded by Srinivas Chintakindi/XTL/NWIE on 12/16/2005 09:41 AM ----- cry...@li... wrote on 12/15/2005 04:52:33 PM: > cry...@li... > > > > jars are copied to runtimes\base_v51\java\jre\lib\security, > > I followed the installation process explained in the readme.txt and > > i am running the examples in RAD. > > > > Thanks for following up promptly !!! > > Srini > > > > "Bob Corcoran" <bco...@be...> > > RE: [Cryptix-users] caught between - Unsupported keysize / > > Jurisdiction policy files are not signed > > > > Where did you put the two jar files? > > > > -----Original Message----- > > From: cry...@li... > > [mailto:cry...@li...] On Behalf Of > > CH...@Na... > > Sent: Thursday, December 15, 2005 3:45 PM > > To: Bob Corcoran; cry...@li... > > Subject: RE: [Cryptix-users] caught between - Unsupported keysize / > > Jurisdiction policy files are not signed > > > > Yes, from "http://java.sun.com/j2se/1.4.2/download.html" > > Thanks > > Srini > > > > > > > > Did you get the Unlimited Strength Jurisdiction Policy Files from Sun? > > > > -----Original Message----- > > From: cry...@li... > > [mailto:cry...@li...] On Behalf Of > > CH...@Na... > > Sent: Thursday, December 15, 2005 3:29 PM > > To: cry...@li... > > Subject: [Cryptix-users] caught between - Unsupported keysize / > Jurisdiction > > policy files are not signed > > > > > > Hi All, I am new to the encryption world. Going through Cryptix last > couple > > of days. > > > > My need is to get my data encrypted with PGP encryption. Can I just get > this > > done with out using any third party api? > > I am intending to achieve PGP encryption by using SunJCE provider? > examples > > would help a lot. > > > > I tried to run the Cryptix examples on jre 1.4.2, 1. when i run the > > GenerateAndWriteKey.java with "Strong" but limited crypto it works fine. > > But when I switch to "unlimited strength" cryto I am getting following > > errors > > > > Exception in thread "main" java.lang.ExceptionInInitializerError > > at javax.crypto.Cipher.a(Unknown Source) > > at javax.crypto.Cipher.getInstance(Unknown Source) > > at > > > cryptix.openpgp.algorithm.PGPAlgorithmFactory.getCipherAlgorithm(PGPAlgorith > > > > > mFactory.java:675) > > at > cryptix.openpgp.packet.PGPKeyPacket.encrypt(PGPKeyPacket.java:426) > > at > > > cryptix.openpgp.provider.PGPKeyBundleImpl.addPrivateKey(PGPKeyBundleImpl.jav > > > > > a:340) > > at > > > cryptix.openpgp.examples.GenerateAndWriteKey.generateSimpleKey(GenerateAndWr > > > > > iteKey.java:244) > > at > > > cryptix.openpgp.examples.GenerateAndWriteKey.main(GenerateAndWriteKey.java:8 > > > > > 9) > > Caused by: java.lang.SecurityException: Cannot set up certs for trusted > CAs > > at javax.crypto.e.<clinit>(Unknown Source) > > ... 7 more > > Caused by: java.lang.SecurityException: Jurisdiction policy files are not > > signed by trusted signers! > > at javax.crypto.e.a(Unknown Source) > > at javax.crypto.e.a(Unknown Source) > > at javax.crypto.e.g(Unknown Source) > > at javax.crypto.f.run(Unknown Source) > > at java.security.AccessController.doPrivileged1(Native Method) > > at > > java.security.AccessController.doPrivileged(AccessController.java:351) > > ... 8 more > > > > > > 2. With the Keys generated using "Strong" encryption, if I run > Encrypt.java > > I am getting following error. > > Exception in thread "main" java.lang.SecurityException: Unsupported > keysize > > or algorithm parameters > > at javax.crypto.Cipher.init(Unknown Source) > > at > > > cryptix.openpgp.packet.PGPEncryptedDataPacket.encrypt(PGPEncryptedDataPacket > > > > > .java:356) > > at > > > cryptix.openpgp.provider.PGPEncryptedMessageBuilder.engineBuild(PGPEncrypted > > > > > MessageBuilder.java:381) > > at > > > cryptix.message.EncryptedMessageBuilder.build(EncryptedMessageBuilder.java:2 > > > > > 53) > > at cryptix.openpgp.examples.Encrypt.main(Encrypt.java:130) > > please let me know what am i missing ??? > > > > thanks in advance > > Srini |