Bug 1145569 - JDK 8, WS-Security, Unsupported parameter: javax.crypto.spec.IvParameterSpec, Upgrade Santuario to 1.5.7 needed
Summary: JDK 8, WS-Security, Unsupported parameter: javax.crypto.spec.IvParameterSpec,...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Services
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: DR2
: EAP 6.4.0
Assignee: Alessio Soldano
QA Contact: Rostislav Svoboda
URL:
Whiteboard:
Depends On: 1143935 1144103
Blocks: java8
TreeView+ depends on / blocked
 
Reported: 2014-09-23 09:46 UTC by Jan Blizňák
Modified: 2019-08-02 07:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-02 07:27:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Blizňák 2014-09-23 09:46:32 UTC
We hit issue on JBossWS testsuite in WS security tests on JDK8.

When we add BouncyCastle security provider in java.security file as last provider, the exception is thrown with root case:

Original Exception was java.security.InvalidAlgorithmParameterException: Unsupported parameter: javax.crypto.spec.IvParameterSpec@63da70df
	at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1764)
	at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1618)
	at org.apache.xml.security.encryption.XMLCipher.decryptElementContent(XMLCipher.java:1656)
	at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:978)
	at org.apache.ws.security.processor.ReferenceListProcessor.decryptEncryptedData(ReferenceListProcessor.java:337)
	... 33 more
Caused by: java.security.InvalidAlgorithmParameterException: Unsupported parameter: javax.crypto.spec.IvParameterSpec@63da70df
	at com.sun.crypto.provider.CipherCore.init(CipherCore.java:509) [sunjce_provider.jar:1.8.0]
	at com.sun.crypto.provider.AESCipher.engineInit(AESCipher.java:339) [sunjce_provider.jar:1.8.0]
	at javax.crypto.Cipher.init(Cipher.java:1368) [jce.jar:1.8.0]
	at javax.crypto.Cipher.init(Cipher.java:1301) [jce.jar:1.8.0]
	at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1760)
	... 37 more



which is related to https://issues.apache.org/jira/browse/SANTUARIO-392, in short 

The issue is fixed in santuario 1.5.7

Comment 1 Jan Blizňák 2014-09-25 14:58:37 UTC
Checked with 6.4.0.DR2 which contains santuario 1.5.7 and issues on JDK8 are gone (tested with BouncyCastle 1.51).

Comment 2 Jan Blizňák 2014-10-15 18:18:31 UTC
Verified with 6.4.0.DR2 during 6.4.0.DR5 testing cycle.


Note You need to log in before you can comment on or make changes to this bug.