Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252377

Incorrect encoding for EC AlgorithmIdentifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • 8-pool, 11-pool, 11-pool-oracle
    • security-libs
    • None

      The AlgorithmIdentifier for ECDSA should omit the parameters field. See https://tools.ietf.org/html/rfc5758#section-3.2 :

         When the ecdsa-with-SHA224, ecdsa-with-SHA256, ecdsa-with-SHA384, or
         ecdsa-with-SHA512 algorithm identifier appears in the algorithm field
         as an AlgorithmIdentifier, the encoding MUST omit the parameters
         field.

      However, the JDK encodes the parameters as NULL. The bug is in sun.security.x509.AlgorithmId.derEncode()

            hchao Haimay Chao
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: