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

PKCS11 tests fail with NSS 3.91

    XMLWordPrintable

Details

    Backports

      Description

        sun/security/pkcs11/Signature/SignatureTestPSS.java
        sun/security/pkcs11/Signature/KeyAndParamCheckForPSS.java
        sun/security/pkcs11/MessageDigest/TestCloning.java

        Running test in Ubuntu mantic:
        ...
        Testing [1024 SHA3-256]
        test#1: got expected IKE

        java.security.InvalidKeyException: java.security.ProviderException: Initialization failed
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineInitSign(P11PSSSignature.java:547)
        at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1357)
        at java.base/java.security.Signature.initSign(Signature.java:636)
        at KeyAndParamCheckForPSS.runTest(KeyAndParamCheckForPSS.java:121)
        at KeyAndParamCheckForPSS.main(KeyAndParamCheckForPSS.java:70)
        at PKCS11Test.premain(PKCS11Test.java:178)
        at PKCS11Test.testNSS(PKCS11Test.java:554)
        at PKCS11Test.main(PKCS11Test.java:214)
        at KeyAndParamCheckForPSS.main(KeyAndParamCheckForPSS.java:45)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1570)
        Caused by: java.security.ProviderException: Initialization failed
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.initialize(P11PSSSignature.java:344)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineInitSign(P11PSSSignature.java:545)
        ... 12 more
        Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_MECHANISM_PARAM_INVALID
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_SignInit(Native Method)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.initialize(P11PSSSignature.java:337)
        ... 13 more

        Attachments

          Issue Links

            Activity

              People

                valeriep Valerie Peng
                vpetko Vladimir Petko
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: