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

Use SHA-256 for javap classfile checksum

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 14
    • tools
    • None
    • behavioral
    • minimal
    • This is just for information to help verify the class file is as expected.
    • Other

      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`

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

              Created:
              Updated:
              Resolved: