-
Bug
-
Resolution: Fixed
-
P2
-
21
-
b26
-
x86_64
-
generic
-
Verified
The following test failed in the JDK21 CI:
sun/security/pkcs11/Signature/TestRSAKeyLength.java
Here's a snippet from the macosx-x64 sighting:
#section:main
----------messages:(7/307)----------
command: main TestRSAKeyLength
reason: User specified action: run main/othervm TestRSAKeyLength
started: Tue Jun 06 21:21:07 GMT 2023
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.crypto.cryptoki
finished: Tue Jun 06 21:21:10 GMT 2023
elapsed time (seconds): 2.829
----------configuration:(3/47)----------
Boot Layer
add modules: jdk.crypto.cryptoki
----------System.out:(4/291)----------
Beginning test run TestRSAKeyLength...
nssLibDir: /System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/tests/jdk/nsslib/nsslib-macosx_x64/3.46/nsslib-macosx_x64-3.46.zip/nsslib/
Running test with provider SunPKCS11-NSS (security manager disabled) ...
Testing RSA signature SHA1withRSA
----------System.err:(26/1633)----------
java.security.ProviderException: cancel failed
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.cancelOperation(P11Signature.java:338)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.reset(P11Signature.java:278)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.engineInitSign(P11Signature.java:497)
at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1357)
at java.base/java.security.Signature.initSign(Signature.java:636)
at java.base/java.security.SignedObject.sign(SignedObject.java:250)
at java.base/java.security.SignedObject.<init>(SignedObject.java:168)
at TestRSAKeyLength.main(TestRSAKeyLength.java:89)
at PKCS11Test.premain(PKCS11Test.java:178)
at PKCS11Test.testNSS(PKCS11Test.java:554)
at PKCS11Test.main(PKCS11Test.java:214)
at TestRSAKeyLength.main(TestRSAKeyLength.java:47)
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.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_VerifyFinal(Native Method)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.cancelOperation(P11Signature.java:312)
... 15 more
JavaTest Message: Test threw exception: java.security.ProviderException: cancel failed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.security.ProviderException: cancel failed
----------rerun:(37/8504)*----------
sun/security/pkcs11/Signature/TestRSAKeyLength.java
Here's a snippet from the macosx-x64 sighting:
#section:main
----------messages:(7/307)----------
command: main TestRSAKeyLength
reason: User specified action: run main/othervm TestRSAKeyLength
started: Tue Jun 06 21:21:07 GMT 2023
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.crypto.cryptoki
finished: Tue Jun 06 21:21:10 GMT 2023
elapsed time (seconds): 2.829
----------configuration:(3/47)----------
Boot Layer
add modules: jdk.crypto.cryptoki
----------System.out:(4/291)----------
Beginning test run TestRSAKeyLength...
nssLibDir: /System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/tests/jdk/nsslib/nsslib-macosx_x64/3.46/nsslib-macosx_x64-3.46.zip/nsslib/
Running test with provider SunPKCS11-NSS (security manager disabled) ...
Testing RSA signature SHA1withRSA
----------System.err:(26/1633)----------
java.security.ProviderException: cancel failed
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.cancelOperation(P11Signature.java:338)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.reset(P11Signature.java:278)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.engineInitSign(P11Signature.java:497)
at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1357)
at java.base/java.security.Signature.initSign(Signature.java:636)
at java.base/java.security.SignedObject.sign(SignedObject.java:250)
at java.base/java.security.SignedObject.<init>(SignedObject.java:168)
at TestRSAKeyLength.main(TestRSAKeyLength.java:89)
at PKCS11Test.premain(PKCS11Test.java:178)
at PKCS11Test.testNSS(PKCS11Test.java:554)
at PKCS11Test.main(PKCS11Test.java:214)
at TestRSAKeyLength.main(TestRSAKeyLength.java:47)
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.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_VerifyFinal(Native Method)
at jdk.crypto.cryptoki/sun.security.pkcs11.P11Signature.cancelOperation(P11Signature.java:312)
... 15 more
JavaTest Message: Test threw exception: java.security.ProviderException: cancel failed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.security.ProviderException: cancel failed
----------rerun:(37/8504)*----------
- relates to
-
JDK-8301553 Support Password-Based Cryptography in SunPKCS11
- Resolved
There are no Sub-Tasks for this issue.