You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2017/03/24 16:42:41 UTC

[jira] [Resolved] (CXF-6641) JWE elliptic curve error

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

Sergey Beryozkin resolved CXF-6641.
-----------------------------------
       Resolution: Fixed
         Assignee: Sergey Beryozkin
    Fix Version/s: 3.1.9

> JWE elliptic curve error
> ------------------------
>
>                 Key: CXF-6641
>                 URL: https://issues.apache.org/jira/browse/CXF-6641
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security
>            Reporter: Colm O hEigeartaigh
>            Assignee: Sergey Beryozkin
>             Fix For: 3.1.9
>
>
> There's a bug I spotted in the elliptic curve encryption code in JOSE - I'm not sure off hand what the correct behaviour is:
> EcdhDirectKeyJweEncryption.EcdhHelper takes a "String ctAlgo" as a parameter that is later used as:
> ContentAlgorithm jwtAlgo = ContentAlgorithm.valueOf(ctAlgo);
> However, EcdhAesWrapKeyEncryptionAlgorithm which constructs EcdhHelper, passes through the key algorithm, not the content algorithm - keyAlgo.getJwaName() leading to an error.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)