Steve Ardis created CAMEL-7938:
----------------------------------

             Summary: Crypto won't decrypt message with multiple encrypted 
parts if "our" key isn't the first part
                 Key: CAMEL-7938
                 URL: https://issues.apache.org/jira/browse/CAMEL-7938
             Project: Camel
          Issue Type: Bug
          Components:  camel-crypto
    Affects Versions: 2.11.1
            Reporter: Steve Ardis


If a message has multiple PGPPublicKeyEncryptedData (meaning, multiple 
recipients), PGPDataFormat fails to decrypt the message (unless our key is the 
first PGPPublicKeyEncryptedData element).

Said differently, if a message is encrypted for recipient A and B (and the 
encrypted parts are in that order) and we are recipient B, the message fails to 
decrypt.

This definitely affected version 2.11.1.  Looking at the latest version of the 
same files, this is most likely still an issue.  The fix in the patch that will 
be supplied is currently being used in our application, but unfortunately I do 
not have a test case available.

I will create a pull-request on Github shortly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to