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

[JVMCI] handle non-cloneable SHA-1 MessageDigest implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 11, 12, 13, 14
    • Fix Version/s: 14
    • Component/s: hotspot

      Description

      jdk.vm.ci.hotspot.HotSpotSpeculationEncoding incorrectly assumes that all MessageDisgest implementations of the SHA-1 algorithm are cloneable. This is not always true. Solaris has a MessageDigest SHA-1 implementation[1] that is not cloneable. Even if Solaris/SPARC support is dropped, this should still be addressed in case a SHA-1 MessageDigest implementation is introduced that is not cloneable.

      [1] https://github.com/openjdk/jdk/blob/6bab0f539fba8fb441697846347597b4a0ade428/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeDigest.java#L241

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kvn Vladimir Kozlov
              Reporter:
              dnsimon Douglas Simon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: