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

sun/security/tools/jarsigner/compatibility/Compatibility.java use wrong key size for EC

    XMLWordPrintable

Details

    Backports

      Description

        Test: sun/security/tools/jarsigner/compatibility/Compatibility.java

        The Test is using wrong key size for EC Line:462
        return new int[] { 384, 571, 0 }; // 0 is no keysize specified
        It should be 521 instead of 571.

        Also there are few Test output pattern mismatch exist which marks the Passed testcase to Failed.
        Ex: The Test failed with message
        java.lang.RuntimeException: The line ' Signature algorithm: SHA384withRSA, 3072-bit key' does not match pattern '^ ( Signature algorithm: DEFAULTwithRSA, 3072-bit key)|( Digest algorithm: SHA-512)$'

        Here it looks like the Test expected pattern message has been modified in jarsigner output which cause the mismatch and it need correction in Test file.

        Attachments

          Issue Links

            Activity

              People

                mdonovan Matthew Donovan
                ssahoo Sibabrata Sahoo
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: