From: Marcel M. <mar...@we...> - 2002-11-27 15:10:55
|
For your first problem I have a Solution! - write your message to an file - open a FileInputStream to this file - try to decrypt the File but !!!! BUT DO NOT CLOSE THE INPUTSTREAM !!! This works fine for me For the second problem i have the same and need also help! PLEASE -----Original Message----- From: cry...@li... [mailto:cry...@li...] On Behalf Of Robert W. Wade Sent: Dienstag, 26. November 2002 19:26 To: cry...@li... Subject: [Cryptix-users] Problems decrypting with Cryptix OpenPGP I am having the same problem that was mentioned on 11/19 by Krishna Arji. When I encrypt a file using PGP 6.5.8 and then try to decrypt it using OpenPGP, I get the following runtime exception: Exception in thread "main" java.lang.RuntimeException: IOException on ByteArrayInputStream, should not happen. java.io.EOFException: Unexpected end of ZLIB input stream at cryptix.openpgp.packet.PGPEncryptedDataPacket.decrypt(PGPEncryptedDataPa cket.java:285) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMes sageImpl.java:210) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMes sageImpl.java:301) at Decrypt.main(Decrypt.java:125) Additionally, I am able to decrypt a file (sent from a third-party) using PGP 6.5.8, but when I try to decrypt it using OpenPGP I get this exception: Reading message failed. cryptix.message.MessageException: cryptix.openpgp.PGPDataFormatException: Read tried past end of packet. at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(PGPMessageFact ory.java:144) at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(PGP MessageFactory.java:72) at cryptix.message.MessageFactory.generateMessages(MessageFactory.java:134) at Decrypt.main(Decrypt.java:103) As an additional piece of information, the OpenPGP encrypt/decrypt examples work fine when run alone. Any help is greatly appreciated, Rob rwwade(at)yahoo.com __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Cryptix-Users mailing list Cry...@li... https://lists.sourceforge.net/lists/listinfo/cryptix-users |