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

Digesting jar file entries with SHA-512 algorithm is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • security-libs
    • None
    • beta
    • sparc
    • solaris_9

      Using the SHA-512 digest algorithm to digest the entries in a jar
      file results in a jar file that cannot be validated with the jarsigner
      tool. There is a line wrapping problem in the digested jar file that results
      in the base64 encoded digests (which are longer with the SHA-512 alg) being
      chopped and wrapped into the following line. The jarsigner tool gives
      the following error when verifying the signed jar file:

      jarsigner: java.io.IOException: invalid header field
      ###@###.### 2005-1-20 13:24:53 GMT

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: