You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(29) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(88) |
Feb
(75) |
Mar
(86) |
Apr
(81) |
May
(47) |
Jun
(36) |
Jul
(87) |
Aug
(61) |
Sep
(37) |
Oct
(36) |
Nov
(18) |
Dec
(4) |
2004 |
Jan
(19) |
Feb
(26) |
Mar
(5) |
Apr
(10) |
May
|
Jun
(2) |
Jul
(14) |
Aug
(21) |
Sep
(8) |
Oct
(51) |
Nov
(20) |
Dec
(11) |
2005 |
Jan
(5) |
Feb
(5) |
Mar
(25) |
Apr
(48) |
May
(6) |
Jun
(29) |
Jul
(42) |
Aug
(25) |
Sep
(11) |
Oct
(42) |
Nov
(43) |
Dec
(52) |
2006 |
Jan
(39) |
Feb
(21) |
Mar
(42) |
Apr
(25) |
May
(22) |
Jun
(9) |
Jul
(4) |
Aug
(7) |
Sep
(3) |
Oct
(7) |
Nov
(11) |
Dec
(8) |
2007 |
Jan
(1) |
Feb
(5) |
Mar
(11) |
Apr
(2) |
May
(5) |
Jun
(9) |
Jul
(1) |
Aug
(9) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(1) |
2008 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(5) |
Dec
|
2009 |
Jan
(8) |
Feb
|
Mar
(1) |
Apr
(5) |
May
(4) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Francisco J. R. L. <fra...@gm...> - 2008-02-26 17:40:36
|
Hi everybody, I am new with cryptography stuff and I am working on a program that needs to encrypt and sign large files using cryptix openpgp, I am currently running the samples GenereteAndWriteKey and StreamEncrypt, then I am going to run StreamEncryptSign example. I am working on Windows XP Professional, Java SE 5, MyEclipse 6. For now, I have the following jar files in a lib folder in my MyEclipse project: certpath-api-compat.jar cryptix-jce-provider.jar cryptix-message-api.jar cryptix-openpgp-provider.jar cryptix-pki-api.jar I have a question for the moment, How a Key/Key pair can be generated with an expiration date? In the GenerateAndWriteKey example, running on debug mode, in the watch/inspect variables, each key, pubkey and privkey has a packet member; this packet contains an expire member (int). What does it mean that expiration date and what values are permitted to this variable? I guess the value 0 means never expires. Regards and thank you for your time, Francisco Rosas |
From: Alice AU <al...@ms...> - 2008-01-05 16:33:26
|
Hi guys, =20 Have tried searching the mailing list + the Internet, but amstill no= t sure if special characters, like ~!@#$%^&*()_+, is fine to beincluded in= the passphrase. Do any one know about it? =20 Thank you,Alice _________________________________________________________________ Make distant family not so distant with Windows Vista=AE + Windows Live=99. http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=3DTXT_TA= GLM_CPC_VideoChat_distantfamily_012008= |
From: Alice AU <al...@ms...> - 2008-01-05 16:32:20
|
Hello guys, =20 "TT" exception ( listed below ) is quite often encountered duringdecryption= when 2048 size OpenPGP keys are used - 2048 size keys forencryption+signat= ure, then another 2048 keys for verify+decryption. Itworked fine when key s= izes between 2 parties are 1024 & 2048. How shouldthe problem be solved, if= key size of 2048 is preferred between 2parties, plus it is of concern that= file transfer should be stable?Algorithm OpenPGP was used for both encrypt= ion and signature, andLiteralMessageOutputStream, EncryptedMessageOutputStr= eam,SignedMessageOutputStream were called for it. =20 java.lang.RuntimeException: TT atcryptix.jce.provider.rsa.RSACipher_E= CB_PKCS1.engineDoFinal(RSACipher_ECB_PKCS1.java:209) atcryptix.jce.pr= ovider.rsa.RSACipher_ECB_PKCS1.engineDoFinal(RSACipher_ECB_PKCS1.java:178) = at javax.crypto.Cipher.doFinal(DashoA12275) at cryptix.openpgp.= algorithm.PGPRSA.decrypt(PGPRSA.java:614) atcryptix.openpgp.packet.PG= PPublicKeyEncryptedSessionKeyPacket.decrypt(PGPPublicKeyEncryptedSessionKey= Packet.java:189) atcryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryp= tedMessageImpl.java:185) atcryptix.openpgp.provider.PGPEncryptedMessa= geImpl.decrypt(PGPEncryptedMessageImpl.java:314) =20 Thank you,Alice _________________________________________________________________ Make distant family not so distant with Windows Vista=AE + Windows Live=99. http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=3DTXT_TA= GLM_CPC_VideoChat_distantfamily_012008= |
From: Bill L. <bl...@ya...> - 2007-12-12 15:58:40
|
Hi, I am using the cryptix libraries to encrypt files using a program very similar to StreamEncrypt.java provided in the cryptix.openpgp.examples package. Commercial versions of PGP (Unix, Windows) include the ability to encrypt files to more than 1 public key. Is it possible to stream encrypt a file to more than 1 public key at at time using the cryptix open source libraries? Thanks, Bill Lyons Denver, CO |
From: Denis B. <den...@co...> - 2007-11-12 10:54:48
|
Hi folks, I user Cryptix for PGP encryption/decryption. When I make local tests: ecnrypt/decrypt - there is not problem. And when I install my code to WebSphere - most of time - no problems. But rarely on WebSphere applicaton throws different exceptions like: java.lang.IllegalArgumentException: id not found - java.security.NoSuchAlgorithmException: Cipher #3 not found vmcid: 0x0 minor code: 0 completed: No Or ElGamal algorithm not found. I think that problem with providers location during runtime. But I have registered security providers in my code this way java.security.Security.addProvider( new cryptix.jce.provider.CryptixCrypto() ); java.security.Security.addProvider( new cryptix.openpgp.provider.CryptixOpenPGP() ); --- Denis Bessmerniy J2EE Developer Consumer Health Technologies Ukraine, Kyiv, Shchorsa Str, 32B, office 267 Phone: +380445690293 Fax: +380445690294 Cell.: 80501030623 Email: den...@co... |
From: Xavier, J. <c-j...@st...> - 2007-10-31 15:03:33
|
Hi, Is there a openPGP implementation for encryption using passphrase? The current implementation does not have it. The version that I am using is cryptix-openpgp-20050418-snap.zip <http://www.cryptix.org/cryptix-openpgp-20050418-snap.zip>=20 =20 =20 Regards Joseph Xavier =20 |
From: Hartmut K. <har...@ha...> - 2007-10-19 10:25:31
|
Dear all I want to add something important concerning my problem. If I use non-streaming example-files like EncryptAndSign.java or DecryptAndVerify.java there is no exception. I just get the exception message by using streaming-classes for encrypting/signing AND for decrypting/verifying. You can get the data-file data.dat.9 which produces the error at www.hauk-sasko.de/data.dat.9 thanks a lot anybody trying to reproduce the exception behaviour and - hopefully - finding out the problem. Regards, Hartmut Again, my problem: Dear all, I tried to use the example-files StreamEncryptSign.java and StreamDecryptVerify.java to encrypt/sign and decrypt/verify a binary file. Therefor, in the file StreamEncryptSign.java I changed the part: for (int i=0; i<10000; i++) // we write to literal litmos.write( (i+" This is a large message. \r\n").getBytes() ); litmos.close(); in File f = new File("data.dat.9"); FileInputStream fileis = new FileInputStream(f); byte[] buf = new byte[(int) f.length()]; fileis.read(buf); litmos.write(buf); fileis.close(); litmos.close(); By using StreamDecryptVerify.java for decrypting/verifying the encrypted and signed binary file I get the following messages: Decoding message... cryptix.openpgp.PGPFatalDataFormatException: Read tried past end of inputstream at cryptix.openpgp.io.PGPLengthDataInputStream.readDirect(PGPLengthDataInputStream.java:123) at cryptix.openpgp.io.PGPLengthDataInputStream.readInternal(PGPLengthDataInputStream.java:159) at cryptix.openpgp.io.PGPLengthDataInputStream.readBuffer(PGPLengthDataInputStream.java:286) at cryptix.openpgp.io.PGPLengthDataInputStream.readBuffer(PGPLengthDataInputStream.java:250) at cryptix.openpgp.io.PGPLengthDataInputStream.readByteArray(PGPLengthDataInputStream.java:320) at cryptix.openpgp.packet.PGPSignaturePacket.decodeBody(PGPSignaturePacket.java:507) at cryptix.openpgp.provider.PGPDecodedMessageInputStream$SignedLiteralInputStream.verify(PGPDecodedMessageInputStream.java:732) at cryptix.openpgp.provider.PGPDecodedMessageInputStream.engineClose(PGPDecodedMessageInputStream.java:485) at cryptix.message.stream.DecodedMessageInputStream.close(DecodedMessageInputStream.java:162) at cryptix.openpgp.examples.StreamDecryptVerify.run(StreamDecryptVerify.java:138) atcryptix.openpgp.examples.StreamDecryptVerify.main(StreamDecryptVerify.java:64) Streaming the message failed. cryptix.message.stream.MessageStreamException: cryptix.openpgp.PGPFatalDataFormatException: Read tried past end of inputstream. at cryptix.openpgp.provider.PGPDecodedMessageInputStream$SignedLiteralInputStream.verify(PGPDecodedMessageInputStream.java:737) atcryptix.openpgp.provider.PGPDecodedMessageInputStream.engineClose(PGPDecodedMessageInputStream.java:485) at cryptix.message.stream.DecodedMessageInputStream.close(DecodedMessageInputStream.java:162) at cryptix.openpgp.examples.StreamDecryptVerify.run(StreamDecryptVerify.java:138) at cryptix.openpgp.examples.StreamDecryptVerify.main(StreamDecryptVerify.java:64) Does anybody have an idea, why this happens ? Thanks a lot Cheers Hartmut |
From: Hartmut K. <har...@ha...> - 2007-10-15 13:14:40
|
ear all, I tried to use the example-files StreamEncryptSign.java and StreamDecryptVerify.java to encrypt/sign and decrypt/verify a binary file. Therefor, in the file StreamEncryptSign.java I changed the part: for (int i=0; i<10000; i++) // we write to literal litmos.write( (i+" This is a large message. \r\n").getBytes() ); litmos.close(); in File f = new File("data.dat.9"); FileInputStream fileis = new FileInputStream(f); byte[] buf = new byte[(int) f.length()]; fileis.read(buf); litmos.write(buf); fileis.close(); litmos.close(); By using StreamDecryptVerify.java for decrypting/verifying the encrypted and signed binary file I get the following messages: Decoding message... cryptix.openpgp.PGPFatalDataFormatException: Read tried past end of inputstream. at cryptix.openpgp.io.PGPLengthDataInputStream.readDirect(PGPLengthDataInputStream.java:123) at cryptix.openpgp.io.PGPLengthDataInputStream.readInternal(PGPLengthDataInputStream.java:159) at cryptix.openpgp.io.PGPLengthDataInputStream.readBuffer(PGPLengthDataInputStream.java:286) at cryptix.openpgp.io.PGPLengthDataInputStream.readBuffer(PGPLengthDataInputStream.java:250) at cryptix.openpgp.io.PGPLengthDataInputStream.readByteArray(PGPLengthDataInputStream.java:320) at cryptix.openpgp.packet.PGPSignaturePacket.decodeBody(PGPSignaturePacket.java:507) at cryptix.openpgp.provider.PGPDecodedMessageInputStream$SignedLiteralInputStream.verify(PGPDecodedMessageInputStream.java:732) at cryptix.openpgp.provider.PGPDecodedMessageInputStream.engineClose(PGPDecodedMessageInputStream.java:485) at cryptix.message.stream.DecodedMessageInputStream.close(DecodedMessageInputStream.java:162) at cryptix.openpgp.examples.StreamDecryptVerify.run(StreamDecryptVerify.java:138) at cryptix.openpgp.examples.StreamDecryptVerify.main(StreamDecryptVerify.java:64) Streaming the message failed. cryptix.message.stream.MessageStreamException: cryptix.openpgp.PGPFatalDataFormatException: Read tried past end of inputstream. at cryptix.openpgp.provider.PGPDecodedMessageInputStream$SignedLiteralInputStream.verify(PGPDecodedMessageInputStream.java:737) at cryptix.openpgp.provider.PGPDecodedMessageInputStream.engineClose(PGPDecodedMessageInputStream.java:485) at cryptix.message.stream.DecodedMessageInputStream.close(DecodedMessageInputStream.java:162) at cryptix.openpgp.examples.StreamDecryptVerify.run(StreamDecryptVerify.java:138) at cryptix.openpgp.examples.StreamDecryptVerify.main(StreamDecryptVerify.java:64) Does anybody have an idea, why this happens ? Thanks a lot Cheers Hartmut |
From: Raj B <bn...@ho...> - 2007-10-04 18:35:59
|
Thanks for the reply Lothar!! =20 Unfortunately, I can't post the file that produced the error on the forum f= or security reasons and also I couldn't create a file that reproduces the b= ehavior. =20 However, when I was looking through the forum posts, I came across this lin= k: http://sourceforge.net/mailarchive/message.php?msg_id=3D20051107231203.6= 3418.qmail%40web32506.mail.mud.yahoo.com.=20 =20 My issue was resolved after I implemented the changes mentioned in this lin= k.=20 =20 Does anyone see anything wrong with the code changes mentioned in the link?= Can I go ahead and use it? =20 Thanks!! > Date: Tue, 2 Oct 2007 09:30:23 +0200> From: jo...@ki...> To: crypt= ix-...@li...> Subject: Re: [Cryptix-users] StringIndexOut= OfBoundsException> > Raj B schrieb:> > > I am getting the below exception w= hile decrypting a file. This file is> > ~40 MB in size. Does the file size = have anything to do with this> > exception? Has anyone encountered this err= or?> > No, but try to create a file that reproduces this behavior and give>= it to this list (using a link to an external resourcen, nobody> wants - ev= en zipped - 40 MB of data).> > > Regards, Lothar> > -----------------------= --------------------------------------------------> This SF.net email is sp= onsored by: Microsoft> Defy all challenges. Microsoft(R) Visual Studio 2005= .> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________= ________________________________> Cryptix-Users mailing list> Cryptix-Users= @lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/crypti= x-users _________________________________________________________________ Boo!=A0Scare away worms, viruses and so much more! Try Windows Live OneCare= ! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=3Dwl_hotma= ilnews= |
From: Lothar K. <jo...@ki...> - 2007-10-04 13:26:37
|
Stefania Venturini schrieb: > > > * byte[] buf = new byte[4096]; > > int len = decodedInputStream.read(buf); > while (len > 0) { > fileOutputStream.write(buf, 0, len); > len = decodedInputStream.read(buf); > } Your reading from and writing to an unbuffered file-stream. Dependent on the operating-system this might be unbuffered. To find out where the time is lost, just comment out the fileOutputStream.write-method. If the time drops significantly, it's not the encoding but the file- operation being done. The decoding itself shouldn't take too long, because a symmetric crypt-algorithm is used. Another option is to start up a Profiler that shows you where CPU-cycles are lost. BTW: Your while-loop can be changed in a way that only one read-method is being used: int len; while ((len = decodedInputStream.read(buf)) > 0){ fileOutputStream.write(buf, 0, len); } Regards, Lothar |
From: Stefania V. <ste...@en...> - 2007-10-04 12:29:38
|
=20 Hello, I have written a java class using the cryptix libraries for the = signature/encryption and decryption/verification of files. I used these classes for the streams and everything worked properly as = long as the files were not to large. =20 However, when I tried to decrypt a 400MB file it took about 30 minutes. I used the example of the "StreamDecryptVerify" libraries to implement = my class but I would like to know if something is out of place or if it = is possible to improve the efficiency of the class. My code: java.security.Security.addProvider( new = cryptix.jce.provider.CryptixCrypto() ); java.security.Security.addProvider( new = cryptix.openpgp.provider.CryptixOpenPGP() ); = //********************************************************************** // First read the keys. = //********************************************************************** try { FileInputStream in; Collection msgs; KeyBundleMessage kbm; MessageFactory mf =3D MessageFactory.getInstance("OpenPGP"); in =3D new FileInputStream("privatekey.pgp"); msgs =3D mf.generateMessages(in); kbm =3D (KeyBundleMessage)msgs.iterator().next(); secretBob =3D (PGPKeyBundle)kbm.getKeyBundle(); in.close(); in =3D new FileInputStream("pubkey.pgp"); msgs =3D mf.generateMessages(in); kbm =3D (KeyBundleMessage)msgs.iterator().next(); publicAlice =3D (PGPKeyBundle)kbm.getKeyBundle(); in.close(); } catch (IOException ioe) { System.err.println("IOException... You did remember to run = the "+ "GenerateAndWriteKey example first, right?"); ioe.printStackTrace(); System.exit(-1); } catch (NoSuchAlgorithmException nsae) { System.err.println("Cannot find the OpenPGP MessageFactory. = "+ "This usually means that the Cryptix OpenPGP provider is = not "+ "installed correctly."); nsae.printStackTrace(); System.exit(-1); } catch (MessageException me) { System.err.println("Reading keybundle failed."); me.printStackTrace(); System.exit(-1); } = //********************************************************************** // The actual stream decryption and verification. = //********************************************************************** try { FileInputStream fileInputStream =3D new FileInputStream(fileToDecrypt); FileOutputStream fileOutputStream =3D new FileOutputStream(fileDecrypted); DecodedMessageInputStream decodedInputStream =3D DecodedMessageInputStream.getInstance("OpenPGP"); decodedInputStream.init(fileInputStream, this, this); System.out.println("Decoding message..."); long inizio =3D System.currentTimeMillis(); System.out.println("inizio=3D"+inizio); byte[] buf =3D new byte[4096]; int len =3D decodedInputStream.read(buf); while (len > 0) { fileOutputStream.write(buf, 0, len); len =3D decodedInputStream.read(buf); } =20 long fine =3D System.currentTimeMillis(); System.out.println("fine=3D"+fine); System.out.println("Tempo impiegato =3D = "+(fine-inizio)+"millisecondi"); System.out.println("Tempo impiegato =3D = "+((fine-inizio)/1000)+" secondi --> ("+(((fine-inizio)/1000)/60)+" = minuti)"); decodedInputStream.close(); fileInputStream.close(); fileOutputStream.flush(); fileOutputStream.close(); System.out.println("Decoding done."); switch(decodedInputStream.getVerificationResult()) { case DecodedMessageInputStream.VERIFICATION_NOT_SIGNED: System.out.println("Message was not signed."); break; case = DecodedMessageInputStream.VERIFICATION_GOOD_SIGNATURE: System.out.println("Message has a GOOD signature."); break; case = DecodedMessageInputStream.VERIFICATION_BAD_SIGNATURE: System.out.println("Message has a BAD signature."); break; default: System.out.println("Unknown verification result."); break; } switch(decodedInputStream.getIntegrityResult()) { case DecodedMessageInputStream.INTEGRITY_NOT_PROTECTED: System.out.println("Message was not integrity = protected."); break; case DecodedMessageInputStream.INTEGRITY_GOOD: System.out.println("Message integrity preserved."); break; case DecodedMessageInputStream.INTEGRITY_VIOLATED: System.out.println("Message integrity VIOLATED."); break; default: System.out.println("Unknown intregrity result."); break; } } catch (NoSuchAlgorithmException nsae) { System.err.println("Cannot find OpenPGP implementation."+ " This usually means that the Cryptix OpenPGP provider = is not "+ "installed correctly."); nsae.printStackTrace(); System.exit(-1); } catch (MessageStreamException me) { System.err.println("Streaming the message failed."); me.printStackTrace(); System.exit(-1); } catch (IOException ioe) { System.err.println("IO error."); ioe.printStackTrace(); System.exit(-1); } Thanks again, Stefania |
From: Lothar K. <jo...@ki...> - 2007-10-02 07:30:32
|
Raj B schrieb: > I am getting the below exception while decrypting a file. This file is > ~40 MB in size. Does the file size have anything to do with this > exception? Has anyone encountered this error? No, but try to create a file that reproduces this behavior and give it to this list (using a link to an external resourcen, nobody wants - even zipped - 40 MB of data). Regards, Lothar |
From: Raj B <bn...@ho...> - 2007-10-01 21:33:13
|
Hi, I am getting the below exception while decrypting a file. This file is = ~40 MB in size. Does the file size have anything to do with this exception?= Has anyone encountered this error? java.lang.StringIndexOutOfBoundsExcepti= on at java.lang.String.substring(String.java:1088) at cryptix.openpgp.util.= PGPArmoury.parse(PGPArmoury.java:331) at cryptix.openpgp.util.PGPArmoury.<i= nit>(PGPArmoury.java:145) at cryptix.openpgp.provider.PGPMessageFactory.gen= erateAscii(PGPMessageFactory.java:116) at cryptix.openpgp.provider.PGPMessa= geFactory.engineGenerateMessages(PGPMessageFactory.java:78) at cryptix.mess= age.MessageFactory.generateMessages(MessageFactory.java:142) at com.test.fc= .controller.util.PGPUtil.decryptFile(Unknown Source) at com.test.fc.control= ler.processor.FormTypeProcessorFactory.receive(Unknown Source) at sun.refle= ct.GeneratedMethodAccessor183.invoke(Unknown Source) at sun.reflect.Delegat= ingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.= lang.reflect.Method.invoke(Method.java:615) at org.springframework.aop.supp= ort.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.sprin= gframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:= 165) at $Proxy1.receive(Unknown Source) at com.test.fc.ejb.MessageReceiverB= ean.onMessage(Unknown Source) at com.ibm.ejs.jms.listener.MDBWrapper$Privil= edgedOnMessage.run(MDBWrapper.java:302) at com.ibm.ws.security.util.AccessC= ontroller.doPrivileged(AccessController.java:63) at com.ibm.ejs.jms.listene= r.MDBWrapper.callOnMessage(MDBWrapper.java:271) at com.ibm.ejs.jms.listener= .ServerSession.onMessage(ServerSession.java:671) at com.ibm.ejs.jms.listene= r.ServerSession.dispatch(ServerSession.java:623) at sun.reflect.GeneratedMe= thodAccessor182.invoke(Unknown Source) at sun.reflect.DelegatingMethodAcces= sorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.M= ethod.invoke(Method.java:615) at com.ibm.ejs.jms.listener.ServerSessionDisp= atcher.dispatch(ServerSessionDispatcher.java:37) at com.ibm.ejs.container.M= DBWrapper.onMessage(MDBWrapper.java:96) at com.ibm.ejs.container.MDBWrapper= .onMessage(MDBWrapper.java:132) at com.ibm.ejs.jms.listener.MDBWrapper.onMe= ssage(MDBWrapper.java:242) at org.jboss.jms.client.remoting.MessageCallback= Handler.callOnMessage(MessageCallbackHandler.java:90) at org.jboss.jms.clie= nt.container.AsfAspect.handleRun(AsfAspect.java:167) at sun.reflect.Generat= edMethodAccessor181.invoke(Unknown Source) at sun.reflect.DelegatingMethodA= ccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.refle= ct.Method.invoke(Method.java:615) at org.jboss.aop.advice.PerInstanceAdvice= .invoke(PerInstanceAdvice.java:130) at org.jboss.jms.client.delegate.Client= SessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$r= un_N8003352271541955702.java) at org.jboss.jms.client.container.ClosedInter= ceptor.invoke(ClosedInterceptor.java:182) at org.jboss.aop.advice.PerInstan= ceInterceptor.invoke(PerInstanceInterceptor.java:117) at org.jboss.jms.clie= nt.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(Clien= tSessionDelegate$run_N8003352271541955702.java) at org.jboss.jms.client.con= tainer.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69) at org.jbo= ss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invok= eNext(ClientSessionDelegate$run_N8003352271541955702.java) at org.jboss.jms= .client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107= ) at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541= 955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java) at o= rg.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegat= e.java) at org.jboss.jms.client.JBossSession.run(JBossSession.java:199) at = com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:969) at com.ibm.= ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.ja= va:891) at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:48= 3) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Thanks!! _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQBR= E= |
From: Ian G <ia...@sy...> - 2007-08-27 12:04:07
|
Tobias Schmid wrote: > Anyway, as the "latest" Cryptix release is more than two years old, > you're probably riding a dead horse. We switched to BC quite a while > ago (http://www.bouncycastle.org/) and never looked back. It's got way > better documentation/examples and is actively developed. Does BC have the PGP capability? iang |
From: Tobias S. <to...@kn...> - 2007-08-27 10:34:00
|
> in = new FileInputStream("bob-public.pgp.asc"); [...] > When the content of this file is a key generated by crytix, it works. But > when I put in the file a simple string "This is my public key" as a key, the > error I get is: [...] > Do you know why? "This is my public key" is not a PGP key, obviously. I don't know how much you know about encryption but it sounds like you're confusing the actual key with the passphrase. Anyway, as the "latest" Cryptix release is more than two years old, you're probably riding a dead horse. We switched to BC quite a while ago (http://www.bouncycastle.org/) and never looked back. It's got way better documentation/examples and is actively developed. Tobias |
From: Lothar K. <jo...@ki...> - 2007-08-27 09:59:59
|
ikiliklip ikiliklip schrieb: strange name. > kbm = (KeyBundleMessage) msgs.iterator().next(); [...] > java.lang.ClassCastException: cryptix.openpgp.provider.PGPLiteralMessageImpl PGPLiteralMessageImpl is not a subclass of KeyBundleMessage, so casting to it must lead to this exception. You should cast to Message and check for the type of the class before doing a more concrete cast. Regards, Lothar |
From: ikiliklip i. <iki...@ya...> - 2007-08-27 07:42:22
|
Hi everyvody! I'm trying to read the content of bob-public.pgp.asc file. Well, the code where the error is thrown is that: in = new FileInputStream("bob-public.pgp.asc"); msgs = mf.generateMessages(in); kbm = (KeyBundleMessage) msgs.iterator().next(); publicBundle = (PGPKeyBundle) kbm.getKeyBundle(); in.close(); When the content of this file is a key generated by crytix, it works. But when I put in the file a simple string "This is my public key" as a key, the error I get is: java.lang.ClassCastException: cryptix.openpgp.provider.PGPLiteralMessageImpl Do you know why? If I convert the string to base64, i get the same error. I'm doing something wrong, but I don't know what it is!! Help me, please!!! I would appreciate any hint! Thanks, Regards --------------------------------- Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!. |
From: fatih b. <fat...@ya...> - 2007-08-17 11:22:36
|
Hi everybody,=0A=0AI am a university student and I am working in a telecomu= nication company.=0AI am searching more than one week for an open source a= sn.1 to java parser/compiler and I found cryptix's asn.1 tool..=0AThis tool= is for DER docoding/ encoding=0ABut I want to do BER processing.. I want t= o use cryptix for only parsing my asn.1 input file which is a text file and= includes some asn.1 definitions like :=0A=0AExampleProtocol DEFINITIONS := :=3D=0ABEGIN=0A ExampleProtocolMessage ::=3D CHOICE {=0A =0A = rlcGeneralBroadcast RlcGeneralBroadcast,=0A }=0A RlcGeneralBr= oadcast ::=3D [APPLICATION 0] SEQUENCE {=0A =0A d= uplexMode DuplexMode,=0A fr= ameOffset FrameOffset,=0A=0A } =0A Dupl= exMode ::=3D ENUMERATED {fdd(0), tdd(1)}=0A FrameOffset = ::=3D INTEGER (0 | 8..20)=0A=0AEND=0A=0AIn the cryptix-asn1 tool it is = writing that open source SableCC(a compiler compiler tool) is used for pars= ing and there is a file "ASN1-004.grammar" which icludes the asn.1 language= definitions in BNF format to use in SableCC(at least I think so..) I am no= t sure about this.. =0AI tried to look the source code very closer but it i= s still not clear in my mind.. Can I use this asn.1 tool (or the grammer f= ile : "ASN1-004.grammar") to parse my asn.1 input file ? (at the end, I wan= t to generate java classes of the data types which are defined in the input= file)=0A(then later I may write my own BER encode/decode methods..)=0A=0AC= an anyone please help me about that ? =0A=0AThanks=0ABest regards=0AFatih= =0Afatihbatuk.blogspot.com=0A=0A=0A=0A=0A =0A________________________= ____________________________________________________________=0ABuilding a w= ebsite is a piece of cake. Yahoo! Small Business gives you all the tools to= get online.=0Ahttp://smallbusiness.yahoo.com/webhosting |
From: Lothar K. <jo...@ki...> - 2007-08-06 08:54:14
|
Hello, you can fix the problem by defining a wrapper-class: --------------- snip package whatever; import java.util.Enumeration; import cryptix.provider.Cryptix; /** * Own Provider for enabling Cryptix on Java Versions > 1.5 * @author Lothar Kimmeringer <lo...@ki...> * */ public class CryptixNewerJavaProvider extends Cryptix { /** * Creates a new instance of this provider */ public CryptixNewerJavaProvider() { super(); Enumeration props = propertyNames(); while (props.hasMoreElements()){ String key = (String) props.nextElement(); put(key, getProperty(key)); } } } --------------- snip and register "your own" provider before you try to use Cryptix: java.security.Security.addProvider(new CryptixNewerJavaProvider()); Works fine here and need no change of the cryptix-sources. Best regards, Lothar Kimmeringer |
From: Geetu S. <gee...@gm...> - 2007-08-02 08:07:19
|
It works like a charm!!!! It was my overlook. Thanks a ton Matt. On 8/2/07, Matt Fellows <mf...@fi...> wrote: > > Haven't read the whole lot of the code but it looks like the problem lies > here... > > BufferedReader in = new BufferedReader(new FileReader(fromFileName)); > > Surely this will not work on a binary file? A buffered reader will > corrupt binary data as it gets converted into text... > This isn't a cryptix issue but a plain old Java issue. You can prove it > by reading the file in and writing it out again without encrypting / > decrypting and check if it's the same issue... > Also FileReader is for character files not binary ones... > Use FileInputStream > eg... > FileInputStream in = new FileInputStream(new File(fromFileName)); > > Should now work for binary and textual files. > > > Geetu Sandhu wrote: > > Hi Friends, > I am posting for the first time, so I hope I am adhering to etiqette of > the forum. > > I am facing a problem while encrypting/ decrypting of zip and pdf files. > Is it possible to use cryptix on binary files? > > The exact problem is: > On decrypting, the zip gives me a CRC error on extracting and all > extracted files have zero size. > On decrypting, the pdf files have a size matching the original raw pdf but > it is all blank inside. > > I have tried quite a few ways of using cryptix but nothing worked (it > works on plain txt files). > Nothing on net says anything on the matter. Please help. > > > I am using stream encryption/ decryption. > My code is > > > public void encrypt(String fromFileName, String toFileName) throws > IOException, CipherException { > > try { > FileOutputStream fileos = new FileOutputStream(toFileName); > LiteralMessageOutputStream litmos = > LiteralMessageOutputStream.getInstance("OpenPGP"); > EncryptedMessageOutputStream encmos = > EncryptedMessageOutputStream.getInstance("OpenPGP"); > SecureRandom sr = new SecureRandom(); > > litmos.init(encmos, sr); // Literal writes to Encrypted > encmos.init(fileos, sr); // Encrypted writes to file > > encmos.addRecipient (publicKeyBundle); > > BufferedReader in = new BufferedReader(new > FileReader(fromFileName)); > > int ch; > while ((ch = in.read()) != -1) { > > litmos.write(ch); > } > in.close(); > > litmos.close(); > > } catch (NoSuchAlgorithmException nsae) { > throw new CipherException(noSuchAlgorithmMessage); > } catch (MessageStreamException me) { > throw new CipherException("Streaming the message failed."); > } catch (IOException ioe) { > throw ioe; > } > } > > public void decrypt(String fromFileName, String toFileName) throws > IOException, CipherException { > > FileInputStream fileInputStream=null; > FileOutputStream fileOutputStream=null; > DecodedMessageInputStream decodedInputStream=null; > try { > fileInputStream = new FileInputStream(fromFileName); > fileOutputStream = new FileOutputStream(toFileName); > decodedInputStream = DecodedMessageInputStream.getInstance > ("OpenPGP"); > decodedInputStream.init(fileInputStream, this, this); > > byte[] buf = new byte[4096]; > int len = decodedInputStream.read(buf); > > while (len > 0) { > fileOutputStream.write(buf, 0, len); > len = decodedInputStream.read(buf); > } > > decodedInputStream.close(); > fileInputStream.close(); > fileOutputStream.close(); > > switch(decodedInputStream.getVerificationResult ()) { > case > DecodedMessageInputStream.VERIFICATION_GOOD_SIGNATURE: > case DecodedMessageInputStream.VERIFICATION_NOT_SIGNED: > break; > case DecodedMessageInputStream.VERIFICATION_BAD_SIGNATURE: > throw new CipherException("Message has a BAD > signature."); > default: > throw new CipherException("Unknown verification > result"); > } > > switch(decodedInputStream.getIntegrityResult()) { > case DecodedMessageInputStream.INTEGRITY_NOT_PROTECTED: > case DecodedMessageInputStream.INTEGRITY_GOOD: > break; > case DecodedMessageInputStream.INTEGRITY_VIOLATED: > throw new CipherException("Message integrity > VIOLATED."); > default: > throw new CipherException("Unknown intregrity > result."); > } > > } catch (NoSuchAlgorithmException nsae) { > > throw new CipherException(noSuchAlgorithmMessage); > > } catch (MessageStreamException me) { > > // throw new CipherException("Decrypting through streaming the > message failed."); > > } catch (IOException ioe) { > > throw ioe; > } finally { > try { > fileInputStream.close(); > fileOutputStream.close(); > decodedInputStream.close(); > } catch (Exception e){ > > } > } > } > -- > regards, > Geetu > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Cryptix-Users mailing list > Cry...@li...https://lists.sourceforge.net/lists/listinfo/cryptix-users > > ___________________________________________________________ > > First Option's outgoing email policy is at > http://www.firstoption.net/emailpolicy.html, but a short summary is :- > > - all email/attachments are confidential; do not use, circulate or release > > without our consent > > - email is not authorised unless it is on First Option business > > - email is not binding unless it is from an authorised person > and is signed with a digital certificate > > First Option Ltd. - Switchboard +44 (0) 1962 738200 > Signal House, Jacklyns Lane, Alresford, Hants, SO24 9JJ, United Kingdom. > Registered Company No: 2453594 > ___________________________________________________________ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Cryptix-Users mailing list > Cry...@li... > https://lists.sourceforge.net/lists/listinfo/cryptix-users > > -- regards, Geetu |
From: Matt F. <mf...@fi...> - 2007-08-02 07:44:51
|
Haven't read the whole lot of the code but it looks like the problem lies here... BufferedReader in = new BufferedReader(new FileReader(fromFileName)); Surely this will not work on a binary file? A buffered reader will corrupt binary data as it gets converted into text... This isn't a cryptix issue but a plain old Java issue. You can prove it by reading the file in and writing it out again without encrypting / decrypting and check if it's the same issue... Also FileReader is for character files not binary ones... Use FileInputStream eg... FileInputStream in = new FileInputStream(new File(fromFileName)); Should now work for binary and textual files. Geetu Sandhu wrote: > Hi Friends, > I am posting for the first time, so I hope I am adhering to etiqette > of the forum. > > I am facing a problem while encrypting/ decrypting of zip and pdf files. > Is it possible to use cryptix on binary files? > > The exact problem is: > On decrypting, the zip gives me a CRC error on extracting and all > extracted files have zero size. > On decrypting, the pdf files have a size matching the original raw pdf > but it is all blank inside. > > I have tried quite a few ways of using cryptix but nothing worked (it > works on plain txt files). > Nothing on net says anything on the matter. Please help. > > > I am using stream encryption/ decryption. > My code is > > > public void encrypt(String fromFileName, String toFileName) throws > IOException, CipherException { > > try { > FileOutputStream fileos = new FileOutputStream(toFileName); > LiteralMessageOutputStream litmos = > LiteralMessageOutputStream.getInstance("OpenPGP"); > EncryptedMessageOutputStream encmos = > EncryptedMessageOutputStream.getInstance("OpenPGP"); > SecureRandom sr = new SecureRandom(); > > litmos.init(encmos, sr); // Literal writes to Encrypted > encmos.init(fileos, sr); // Encrypted writes to file > > encmos.addRecipient (publicKeyBundle); > > BufferedReader in = new BufferedReader(new > FileReader(fromFileName)); > > int ch; > while ((ch = in.read()) != -1) { > > litmos.write(ch); > } > in.close(); > > litmos.close(); > > } catch (NoSuchAlgorithmException nsae) { > throw new CipherException(noSuchAlgorithmMessage); > } catch (MessageStreamException me) { > throw new CipherException("Streaming the message failed."); > } catch (IOException ioe) { > throw ioe; > } > } > > public void decrypt(String fromFileName, String toFileName) throws > IOException, CipherException { > > FileInputStream fileInputStream=null; > FileOutputStream fileOutputStream=null; > DecodedMessageInputStream decodedInputStream=null; > try { > fileInputStream = new FileInputStream(fromFileName); > fileOutputStream = new FileOutputStream(toFileName); > decodedInputStream = > DecodedMessageInputStream.getInstance("OpenPGP"); > decodedInputStream.init(fileInputStream, this, this); > > byte[] buf = new byte[4096]; > int len = decodedInputStream.read(buf); > > while (len > 0) { > fileOutputStream.write(buf, 0, len); > len = decodedInputStream.read(buf); > } > > decodedInputStream.close(); > fileInputStream.close(); > fileOutputStream.close(); > > switch(decodedInputStream.getVerificationResult ()) { > case > DecodedMessageInputStream.VERIFICATION_GOOD_SIGNATURE: > case DecodedMessageInputStream.VERIFICATION_NOT_SIGNED: > break; > case > DecodedMessageInputStream.VERIFICATION_BAD_SIGNATURE: > throw new CipherException("Message has a BAD > signature."); > default: > throw new CipherException("Unknown verification > result"); > } > > switch(decodedInputStream.getIntegrityResult()) { > case DecodedMessageInputStream.INTEGRITY_NOT_PROTECTED: > case DecodedMessageInputStream.INTEGRITY_GOOD: > break; > case DecodedMessageInputStream.INTEGRITY_VIOLATED: > throw new CipherException("Message integrity > VIOLATED."); > default: > throw new CipherException("Unknown intregrity > result."); > } > > } catch (NoSuchAlgorithmException nsae) { > > throw new CipherException(noSuchAlgorithmMessage); > > } catch (MessageStreamException me) { > > // throw new CipherException("Decrypting through streaming > the message failed."); > > } catch (IOException ioe) { > > throw ioe; > } finally { > try { > fileInputStream.close(); > fileOutputStream.close(); > decodedInputStream.close(); > } catch (Exception e){ > > } > } > } > -- > regards, > Geetu > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Cryptix-Users mailing list > Cry...@li... > https://lists.sourceforge.net/lists/listinfo/cryptix-users > ___________________________________________________________ First Option's outgoing email policy is at http://www.firstoption.net/emailpolicy.html, but a short summary is :- - all email/attachments are confidential; do not use, circulate or release without our consent - email is not authorised unless it is on First Option business - email is not binding unless it is from an authorised person and is signed with a digital certificate First Option Ltd. - Switchboard +44 (0) 1962 738200 Signal House, Jacklyns Lane, Alresford, Hants, SO24 9JJ, United Kingdom Registered Company No: 2453594 ___________________________________________________________ |
From: Geetu S. <gee...@gm...> - 2007-08-02 07:34:34
|
Hi Friends, I am posting for the first time, so I hope I am adhering to etiqette of the forum. I am facing a problem while encrypting/ decrypting of zip and pdf files. Is it possible to use cryptix on binary files? The exact problem is: On decrypting, the zip gives me a CRC error on extracting and all extracted files have zero size. On decrypting, the pdf files have a size matching the original raw pdf but it is all blank inside. I have tried quite a few ways of using cryptix but nothing worked (it works on plain txt files). Nothing on net says anything on the matter. Please help. I am using stream encryption/ decryption. My code is public void encrypt(String fromFileName, String toFileName) throws IOException, CipherException { try { FileOutputStream fileos = new FileOutputStream(toFileName); LiteralMessageOutputStream litmos = LiteralMessageOutputStream.getInstance("OpenPGP"); EncryptedMessageOutputStream encmos = EncryptedMessageOutputStream.getInstance("OpenPGP"); SecureRandom sr = new SecureRandom(); litmos.init(encmos, sr); // Literal writes to Encrypted encmos.init(fileos, sr); // Encrypted writes to file encmos.addRecipient(publicKeyBundle); BufferedReader in = new BufferedReader(new FileReader(fromFileName)); int ch; while ((ch = in.read()) != -1) { litmos.write(ch); } in.close(); litmos.close(); } catch (NoSuchAlgorithmException nsae) { throw new CipherException(noSuchAlgorithmMessage); } catch (MessageStreamException me) { throw new CipherException("Streaming the message failed."); } catch (IOException ioe) { throw ioe; } } public void decrypt(String fromFileName, String toFileName) throws IOException, CipherException { FileInputStream fileInputStream=null; FileOutputStream fileOutputStream=null; DecodedMessageInputStream decodedInputStream=null; try { fileInputStream = new FileInputStream(fromFileName); fileOutputStream = new FileOutputStream(toFileName); decodedInputStream = DecodedMessageInputStream.getInstance ("OpenPGP"); decodedInputStream.init(fileInputStream, this, this); byte[] buf = new byte[4096]; int len = decodedInputStream.read(buf); while (len > 0) { fileOutputStream.write(buf, 0, len); len = decodedInputStream.read(buf); } decodedInputStream.close(); fileInputStream.close(); fileOutputStream.close(); switch(decodedInputStream.getVerificationResult()) { case DecodedMessageInputStream.VERIFICATION_GOOD_SIGNATURE: case DecodedMessageInputStream.VERIFICATION_NOT_SIGNED: break; case DecodedMessageInputStream.VERIFICATION_BAD_SIGNATURE: throw new CipherException("Message has a BAD signature."); default: throw new CipherException("Unknown verification result"); } switch(decodedInputStream.getIntegrityResult()) { case DecodedMessageInputStream.INTEGRITY_NOT_PROTECTED: case DecodedMessageInputStream.INTEGRITY_GOOD: break; case DecodedMessageInputStream.INTEGRITY_VIOLATED: throw new CipherException("Message integrity VIOLATED."); default: throw new CipherException("Unknown intregrity result."); } } catch (NoSuchAlgorithmException nsae) { throw new CipherException(noSuchAlgorithmMessage); } catch (MessageStreamException me) { // throw new CipherException("Decrypting through streaming the message failed."); } catch (IOException ioe) { throw ioe; } finally { try { fileInputStream.close(); fileOutputStream.close(); decodedInputStream.close(); } catch (Exception e){ } } } -- regards, Geetu |
From: Ravi K. <ark...@ya...> - 2007-07-21 13:02:41
|
Hello Everybody, =0A =0AI am working in an Insurance company. We are = using Cryptix-32 and jdk 1.4. =0A =0ARecently we upgraded to jdk1.5, the ol= d version of Cryptix and PGP is not working with jdk 1.5. =0A =0AI am= able to find the above exceptions in google, but when I click on the appro= priate link it is showing the calendar sort of page. I am a new user; I do = not know how to use that. =0A =0ACase 1:=0AI downloaded the latest cryptix-= JCE and open pgp and upgraded the java program which calls cryptix. It is t= hrowing an invalid key exception.=0A =0ACase 2:=0ASince the existing progra= m is throwing exceptions, I installed crptix and open pgp with jdk 1.5 in m= y personal machine and tried to run the examples cryptix.openpgp.encrypt.ja= va. It is throwing the below exception.=0AException in thread "main" java.l= ang.RuntimeException: NYI=0A at cryptix.jce.provider.elgamal.ElGamal= Cipher.engineGetParameters(ElGama=0AlCipher.java:120)=0A at javax.cr= ypto.Cipher.a(DashoA13*..)=0A at javax.crypto.Cipher.init(DashoA13*.= .)=0A at cryptix.openpgp.algorithm.PGPElGamal.encrypt(PGPElGamal.jav= a:550)=0A at cryptix.openpgp.packet.PGPPublicKeyEncryptedSessionKeyP= acket.encrypt(=0APGPPublicKeyEncryptedSessionKeyPacket.java:153)=0A = at cryptix.openpgp.provider.PGPEncryptedMessageBuilder.engineBuild(PGPEn=0A= cryptedMessageBuilder.java:283)=0A at cryptix.message.EncryptedMessa= geBuilder.build(EncryptedMessageBuilder=0A.java:253)=0A at cryptix.o= penpgp.examples.Encrypt.main(Encrypt.java:129)=0A =0A =0AKindly advice me r= egarding the above problem. Any help appreciated.=0A =0ARegards,=0ARavi=0A= =0A=0A =0A___________________________________________________________= _________________________=0AGot a little couch potato? =0ACheck out fun sum= mer activities for kids.=0Ahttp://search.yahoo.com/search?fr=3Doni_on_mail&= p=3Dsummer+activities+for+kids&cs=3Dbz |
From: Eric B. <Eri...@We...> - 2007-06-15 13:36:55
|
This is a similiar issue I was running into using the JCE RC4 = encryption. The only way I could get the code below to work was using a = maximum of 16 characters as the key, which is pretty weak. I couldn't = find and policy files and such. =20 All I am trying to do is RC4 encrypt a string using another string that = is 128 characters long as the string, and I am failing miserably. =20 java.security.Security.addProvider(new = cryptix.jce.provider.CryptixCrypto()); RawSecretKey v_key =3D new RawSecretKey("RC4", = "GFgksgjGNDKGlsgnLDGGknhjLdgnLSgnlsdkgNLSkgnlesnvlKENVlkENVLkNELVknLEKVns= ev".getBytes()); alg =3D Cipher.getInstance("RC4","CryptixCrypto"); alg.init(Cipher.ENCRYPT_MODE, v_key ); byte[] v_encrypted =3D alg.doFinal( = v_form_parameter.getBytes() ); -----Original Message----- From: cry...@li... = [mailto:cry...@li...]On Behalf Of Andreas = Kuehne Sent: Friday, June 15, 2007 3:37 AM To: Rakesh R Nair; cry...@li... Subject: Re: [Cryptix-users] Unsupported keysize or algorithm parameters Hi Rakesh, did you install the 'unlimited strength' policy files ? Greetings Andreas ----- Original Message ---- From: Rakesh R Nair <rak...@in...> To: cry...@li... Sent: Friday, June 15, 2007 5:54:55 AM Subject: [Cryptix-users] Unsupported keysize or algorithm parameters Hi,=20 I am new to PGP Encryption .... I downloaded the code from cryptix site=20 First I ran GenerateAndWriteKeys and it generated public and private key = Then I am trying to run Encrypt.java it is giving me the following error = Exception in thread "main" java.lang.SecurityException: Unsupported = keysize or algorithm parameters=20 at javax.crypto.Cipher.init(Unknown Source)=20 at = cryptix.openpgp.packet.PGPEncryptedDataPacket.encrypt(PGPEncryptedDataPac= ket.java:356)=20 at = cryptix.openpgp.provider.PGPEncryptedMessageBuilder.engineBuild(PGPEncryp= tedMessageBuilder.java:381)=20 at = cryptix.message.EncryptedMessageBuilder.build(EncryptedMessageBuilder.jav= a:253)=20 at com.scb.pgp.test.Encrypt.main(Encrypt.java:130)=20 Please somebody help me=20 rakesh=20 -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cryptix-Users mailing list Cry...@li... https://lists.sourceforge.net/lists/listinfo/cryptix-users This message may contain confidential information. If you are not = the intended recipient, use of this message is prohibited. If you've = received this message in error, please delete it. Wells Real Estate = Funds is affiliated with Wells Investment Securities, Inc. Investment = details are available by prospectus; offers can be made only through = financial professionals. Tax statements are not intended to be used = to avoid penalties or promote transactions. =0D |
From: Andreas K. <ak...@ya...> - 2007-06-15 07:36:48
|
Hi Rakesh, did you install the 'unlimited strength' policy files ? Greetings Andreas ----- Original Message ---- From: Rakesh R Nair <rak...@in...> To: cry...@li... Sent: Friday, June 15, 2007 5:54:55 AM Subject: [Cryptix-users] Unsupported keysize or algorithm parameters Hi, I am new to PGP Encryption .... I downloaded the code from cryptix site First I ran GenerateAndWriteKeys and it generated public and private key Then I am trying to run Encrypt.java it is giving me the 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(PGPEncryptedMessageBuilder.java:381) at cryptix.message.EncryptedMessageBuilder.build(EncryptedMessageBuilder.java:253) at com.scb.pgp.test.Encrypt.main(Encrypt.java:130) Please somebody help me rakesh ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cryptix-Users mailing list Cry...@li... https://lists.sourceforge.net/lists/listinfo/cryptix-users |