JDK-8038349 : Signing XML with DSA throws Exception when key is larger than 1024 bits
Type:Bug
Component:security-libs
Sub-Component:javax.xml.crypto
Affected Version:8
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2014-03-25
Updated:2017-05-19
Resolved:2014-05-02
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.
See: https://issues.apache.org/jira/browse/SANTUARIO-379 for more information.
Comments
The affected testcase could pass in nightly result:
http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=669066.CORELIBS-JDK-NIGHTLY-JTREG-15
Verified it
26-12-2014
Add support for signing and verifying XML Signatures with 2048-bit DSA keys. Also add support for the DSA-SHA256 algorithm which was added in XML Signature 1.1: http://www.w3.org/TR/xmldsig-core1/#sec-DSA
JDK 8 already includes the underlying support for both of these in the Sun provider. For 2048 bit keys, the ASN.1 parsing code in the XML Signature layer needed to be adapted to handle 2048 bit keys, and for SHA-256 it was just a matter of registering the algorithm URI and instantiating a Signature object with the SHA256WithDSA algorithm.