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

sun/security/pkcs11/Signature/SignatureTestPSS.java fails with NSS 3.91

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 17, 20, 21, 22
    • security-libs
    • None


      Testing against SHA-224 and MGF1_SHA3-224

      java.lang.RuntimeException: java.security.InvalidKeyException: java.security.ProviderException: Initialization failed
      at SignatureTestPSS.test(SignatureTestPSS.java:100)
      at SignatureTestPSS.runTest(SignatureTestPSS.java:88)
      at SignatureTestPSS.main(SignatureTestPSS.java:75)
      at PKCS11Test.premain(PKCS11Test.java:178)
      at PKCS11Test.testNSS(PKCS11Test.java:554)
      at PKCS11Test.main(PKCS11Test.java:214)
      at SignatureTestPSS.main(SignatureTestPSS.java:60)
      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.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 SignatureTestPSS.checkSignature(SignatureTestPSS.java:140)
      at SignatureTestPSS.test(SignatureTestPSS.java:97)
      ... 10 more
      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)
      ... 14 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)

            rhalade Rajan Halade
            vpetko Vladimir Petko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: