JDK-8154821 : Update issue number for sun/security/pkcs11/ec/TestKeyFactory.java in ProblemList
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-04-21
  • Updated: 2016-07-26
  • Resolved: 2016-07-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b128Fixed
Related Reports
Relates :  
Relates :  
Description
The associated issue in ProblemList for sun/security/pkcs11/ec/TestKeyFactory.java is JDK-7157786, however this issue has been resolved as duplicate.
But the same problem is tracked by another issue JDK-8026976. So, ProblemList should be updated for this test.
Comments
I think this is a product issue, which is tracked by JDK-8026976. Since the fix version of JDK-8026976 is tbd_minor, so the fix version of this issue should be tbd_minor, too. And the priority of JDK-8026976 is P4, hence the priority of this issue could be P4, too. But currently it has to update ProblemList to associate this test with 8026976.
12-07-2016

The failed on Ubuntu 15.10 with NSS version 3.21. libsoftokn3 version = 3.21. ECC Basic. Beginning test run TestKeyFactory... Running test with provider SunPKCS11-NSS (security manager disabled) ... NSS Basic ECC only. Skipping 192, 163, & 409 Length 521 Testing private key... Testing public key... STDERR: java.security.spec.InvalidKeySpecException: Could not parse key at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:299) at sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(jdk.crypto.pkcs11@9-ea/P11KeyFactory.java:94) at java.security.KeyFactory.getKeySpec(java.base@9-ea/KeyFactory.java:423) at TestKeyFactory.testPublic(TestKeyFactory.java:82) at TestKeyFactory.test(TestKeyFactory.java:116) at TestKeyFactory.main(TestKeyFactory.java:145) at PKCS11Test.premain(PKCS11Test.java:167) at PKCS11Test.testNSS(PKCS11Test.java:519) at PKCS11Test.main(PKCS11Test.java:203) at TestKeyFactory.main(TestKeyFactory.java:123) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.io.IOException: Point does not match field size at sun.security.util.ECUtil.decodePoint(java.base@9-ea/ECUtil.java:54) at sun.security.pkcs11.P11ECKeyFactory.decodePoint(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:89) at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:296) ... 15 more
12-07-2016

The test failed on Windows 7 with NSS version 3.16. libsoftokn3 version = 3.16. ECC Extended. libnss3 version = 3.16. ECC Extended. Beginning test run TestKeyFactory... Running test with provider SunPKCS11-NSS (security manager disabled) ... Length 192 Testing private key... Testing public key... STDERR: java.security.spec.InvalidKeySpecException: Could not parse key at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:299) at sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(jdk.crypto.pkcs11@9-ea/P11KeyFactory.java:94) at java.security.KeyFactory.getKeySpec(java.base@9-ea/KeyFactory.java:423) at TestKeyFactory.testPublic(TestKeyFactory.java:82) at TestKeyFactory.test(TestKeyFactory.java:116) at TestKeyFactory.main(TestKeyFactory.java:147) at PKCS11Test.premain(PKCS11Test.java:167) at PKCS11Test.testNSS(PKCS11Test.java:519) at PKCS11Test.main(PKCS11Test.java:203) at TestKeyFactory.main(TestKeyFactory.java:125) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.io.IOException: Point does not match field size at sun.security.util.ECUtil.decodePoint(java.base@9-ea/ECUtil.java:54) at sun.security.pkcs11.P11ECKeyFactory.decodePoint(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:89) at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:296) ... 15 more
12-07-2016

The test failed on Solaris 12 with NSS version 3.172. libsoftokn3 version = 3.172. ECC Extended. ... Running test with provider SunPKCS11-NSS (security manager disabled) ... Length 192 Testing private key... Testing public key... STDERR: java.security.spec.InvalidKeySpecException: Could not parse key at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:299) at sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(jdk.crypto.pkcs11@9-ea/P11KeyFactory.java:94) at java.security.KeyFactory.getKeySpec(java.base@9-ea/KeyFactory.java:423) at TestKeyFactory.testPublic(TestKeyFactory.java:82) at TestKeyFactory.test(TestKeyFactory.java:116) at TestKeyFactory.main(TestKeyFactory.java:145) at PKCS11Test.premain(PKCS11Test.java:167) at PKCS11Test.testNSS(PKCS11Test.java:519) at PKCS11Test.main(PKCS11Test.java:203) at TestKeyFactory.main(TestKeyFactory.java:123) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.io.IOException: Point does not match field size at sun.security.util.ECUtil.decodePoint(java.base@9-ea/ECUtil.java:54) at sun.security.pkcs11.P11ECKeyFactory.decodePoint(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:89) at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(jdk.crypto.pkcs11@9-ea/P11ECKeyFactory.java:296) ... 15 more
12-07-2016

Rajan: Please check JDK-8006625, the root cause is in Solaris native PKCS11 and Mozilla NSS libraries. May be TestKeyFactory.java should be updated to skip run if correct solaris or NSS libraries are not available.
09-06-2016

I am closing this as duplicate of JDK-8157665
27-05-2016

This test failed on all of platforms.
27-05-2016