|
From: <CH...@Na...> - 2005-12-15 20:45:20
|
Yes, from "http://java.sun.com/j2se/1.4.2/download.html" Thanks Srini "Bob Corcoran" <bcorcoran@be From nefitsxml.com "Bob Corcoran" > <bco...@be...> To Sent by: <CH...@na...>, cryptix-users <cry...@li.... -admin@lists. net> sourceforge.n cc et Subject RE: [Cryptix-users] caught between - Unsupported keysize / Jurisdiction policy files are not 12/15/2005 signed 03:35 PM 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Cryptix-Users mailing list Cry...@li... https://lists.sourceforge.net/lists/listinfo/cryptix-users ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Cryptix-Users mailing list Cry...@li... https://lists.sourceforge.net/lists/listinfo/cryptix-users |