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

[TEST_BUG] java/security/Signature/SignatureLength.java fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 11
    • 8u121
    • security-libs
    • b08
    • sparc
    • solaris_10

    Backports

      Description

        java/security/Signature/SignatureLength.java test fails JDK 8 and 9 .

        Reproducible: Always

        Is it a platform specific issue: Yes (Fails only in Sol 10 Sparc architecture)

        observation: This happens only with "SunPKCS11-Solaris JCE" provider, if we use "-Dsun.security.pkcs11.enable-solaris=false" flag, its working as expected with "SunRsaSign JCE" provider.

        Which combination: Key algo: RSA, keysize: 1028, signatureAlgorithm: SHA256withRSA, with default provider.

        Exception stack trace:

        Generating RSA keypair using SunPKCS11-Solaris JCE provider
        Signing using SunPKCS11-Solaris JCE provider
        Invalidating signature ...
        Verifying using SunPKCS11-Solaris JCE provider
        Valid? false
        ----------System.err:(13/707)----------
        java.lang.Exception: ERROR: expected a SignatureException but none was thrown
        at SignatureLength.main0(SignatureLength.java:94)
        at SignatureLength.main(SignatureLength.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
        at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

                igerasim Ivan Gerasimov
                pkoppula Prasadarao Koppula
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: