camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan McGuire (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5475) Can't unmarshal pgp messages encrypted with ElGamal.
Date Sun, 29 Jul 2012 00:41:33 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bryan McGuire updated CAMEL-5475:
---------------------------------

    Attachment: patch.txt

The attached patch fixes the problem.  It passes all existing tests, and also includes tests
I've added for ElGamal keys.
                
> Can't unmarshal pgp messages encrypted with ElGamal.
> ----------------------------------------------------
>
>                 Key: CAMEL-5475
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5475
>             Project: Camel
>          Issue Type: Bug
>          Components:  camel-crypto
>    Affects Versions: 2.10.0, 2.11.0, Future
>         Environment: All environments
>            Reporter: Bryan McGuire
>         Attachments: patch.txt
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Current strategy for finding the private key is to iterate the secret keychain and matching
on the configured email address.  This is incorrect; the secret key chain should be searched
by the key id found in the public key encrypted message. What happens now is the DSA signing
key is matched instead of the ElGamal decryption key, and this throws java.security.InvalidKeyException.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message