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

Algorithm name is compared via reference identity

    Details

    • Subcomponent:
    • Resolved In Build:
      b09
    • Verification:
      Not verified

      Description

      In sun.security.provider.DSA.engineInitSign() a check for the key size is meant to be skipped if the MessageDigest is NullDigest20.

      However, the check for the algorithm's name is done via comparing with a String literal, which is not guaranteed to be accurate.

      The comparison should be done via String.equals() instead.

        Attachments

          Activity

            People

            • Assignee:
              igerasim Ivan Gerasimov
              Reporter:
              igerasim Ivan Gerasimov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: