From: Aredeji D. <ar...@ho...> - 2006-06-14 09:30:44
|
Hi, I am having problems decrypting a file that has been encrypted using two or more keys. If a file has been encrypted with two or more keys I can decrypt the file using only the first key that was used during the encryption. For example, if a file was encrypted using user1 and user2 public keys, it can only be decrypted using the user1's private key. When decrypting using the user2's private key I get the following exception: java.lang.RuntimeException: TT at cryptix.jce.provider.rsa.RSACipher_ECB_PKCS1.engineDoFinal(RSACipher_ECB_PKCS1.java:209) at cryptix.jce.provider.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) at cryptix.openpgp.packet.PGPPublicKeyEncryptedSessionKeyPacket.decrypt(PGPPublicKeyEncryptedSessionKeyPacket.java:189) at cryptix.openpgp.provider.PGPDecodedMessageInputStream.engineInit(PGPDecodedMessageInputStream.java:216) at cryptix.message.stream.DecodedMessageInputStream.init(DecodedMessageInputStream.java:144) at bscw.apps.functions.DecryptFunctions.decrypt(DecryptFunctions.java:108) If I use other applications to decrypt the file using the user1 or the user2 key it seems to work fine. How can I fix this? Thank you, Ared _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |