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

Use SHA-256 for javap classfile checksum

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      This is just for information to help verify the class file is as expected.
    • Interface Kind:
      Other

      Description

      Summary

      Change the message digest algorithm from MD5 to SHA-256

      Problem

      javap includes an MD5 checksum in its verbose output. This should be updated to use a more modern algorithm.

      Solution

      Change the algorithm to use SHA-256.

      Specification

      The man page is updated to refer to SHA-256.

      @@ -84,7 +84,7 @@
       :   Prints internal type signatures.
      
       `-sysinfo`
      -:   Shows system information (path, size, date, MD5 hash) of the class being
      +:   Shows system information (path, size, date, SHA-256 hash) of the class being processed.
      
       `-constants`

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              mullan Sean Mullan
              Reviewed By:
              Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: