Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6641

JWE elliptic curve error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.9
    • Component/s: JAX-RS Security
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              coheigea Colm O hEigeartaigh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: