Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7938

Crypto won't decrypt message with multiple encrypted parts if "our" key isn't the first part

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.1
    • Fix Version/s: 2.13.0
    • Component/s: camel-crypto
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              yarddog Steve Ardis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: