You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "sean.mullan (Jira)" <ji...@apache.org> on 2021/10/05 15:35:00 UTC
[jira] [Created] (SANTUARIO-581)
javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest fails on JDK 11 for
ECDSA
sean.mullan created SANTUARIO-581:
-------------------------------------
Summary: javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest fails on JDK 11 for ECDSA
Key: SANTUARIO-581
URL: https://issues.apache.org/jira/browse/SANTUARIO-581
Project: Santuario
Issue Type: Bug
Components: Java
Reporter: sean.mullan
Assignee: sean.mullan
The following tests fail:
* [javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest.testECDSA_SHA224|https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA224/]
* [javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest.testECDSA_SHA256|https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA256/]
* [javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest.testECDSA_SHA384|https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA384/]
* [javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest.testECDSA_SHA512|https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA512/]
* [javax.xml.crypto.test.dsig.PKSignatureAlgorithmTest.testECDSA_SHA1|https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA1/]
with a SignatureException. See [https://ci-builds.apache.org/job/Santuario/job/Santuario%20Java%20JDK11/org.apache.santuario$xmlsec/88/testReport/junit/javax.xml.crypto.test.dsig/PKSignatureAlgorithmTest/testECDSA_SHA224/] for a log file.
This started occurring after integrating a patch that adds support for ECDSA P1363 format.
However, the test only fails on JDK 11 and I think it is actually caused by an underlying bug in the native EC code in the JDK. More investigation is needed. A better stack trace shows the following cause:
Caused by: java.security.InvalidAlgorithmParameterException
at jdk.crypto.ec/sun.security.ec.ECDSASignature.verifySignedDigest(Native Method)
at jdk.crypto.ec/sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:502)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)