-
Bug
-
Resolution: Duplicate
-
P3
-
7, 8
-
x86
-
linux, solaris, windows
After updating the NSS libs in sqe test suite to the latest versions, the jce/ECC test still fails due to:
"java.security.spec.InvalidKeySpecException: Could not parse key" exception
The test is being tried on both Solaris-sparc and Linux platforms. And the two tries throw the same exceptions. So this is not like CR 7152169 which only happens on Solaris-sparc.
This exception is thrown for this line of TestKeyFactory.java:
KeySpec keySpec = kf.getKeySpec(key, ECPublicKeySpec.class);
And the stacktrace is like:
java.security.spec.InvalidKeySpecException: Could not parse key
at
sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:276)
at
sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(P11KeyFactory.java:94)
at java.security.KeyFactory.getKeySpec(KeyFactory.java:413)
at TestKeyFactory.testPublic(TestKeyFactory.java:55)
at TestKeyFactory.test(TestKeyFactory.java:100)
at TestKeyFactory.main(TestKeyFactory.java:136)
Caused by: java.io.IOException: Point does not match field size
at sun.security.ec.ECParameters.decodePoint(ECParameters.java:92)
at
sun.security.pkcs11.P11ECKeyFactory.decodePoint(P11ECKeyFactory.java:80)
at
sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:273)
... 5 more
"java.security.spec.InvalidKeySpecException: Could not parse key" exception
The test is being tried on both Solaris-sparc and Linux platforms. And the two tries throw the same exceptions. So this is not like CR 7152169 which only happens on Solaris-sparc.
This exception is thrown for this line of TestKeyFactory.java:
KeySpec keySpec = kf.getKeySpec(key, ECPublicKeySpec.class);
And the stacktrace is like:
java.security.spec.InvalidKeySpecException: Could not parse key
at
sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:276)
at
sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(P11KeyFactory.java:94)
at java.security.KeyFactory.getKeySpec(KeyFactory.java:413)
at TestKeyFactory.testPublic(TestKeyFactory.java:55)
at TestKeyFactory.test(TestKeyFactory.java:100)
at TestKeyFactory.main(TestKeyFactory.java:136)
Caused by: java.io.IOException: Point does not match field size
at sun.security.ec.ECParameters.decodePoint(ECParameters.java:92)
at
sun.security.pkcs11.P11ECKeyFactory.decodePoint(P11ECKeyFactory.java:80)
at
sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:273)
... 5 more
- duplicates
-
JDK-8006625 ECParameters, Point does not match field size
- Closed
- relates to
-
JDK-8157665 ProblemList.txt needs to be updated as 7041639 closed
- Closed