WSSecEncryptedKey should initialize cipher using WRAP_MODE instead of
ENCRYPT_MODE.
-----------------------------------------------------------------------------------
Key: WSS-304
URL: https://issues.apache.org/jira/browse/WSS-304
Project: WSS4J
Issue Type: Bug
Reporter: Sergey Zhemzhitsky
Assignee: Colm O hEigeartaigh
WSSecEncryptedKey should initialize cipher using WRAP_MODE instead of
ENCRYPT_MODE. For example Russian cryptographic provider such as CryptoPro
validates Cypher inicialization mode and throws an exception if it is not equal
to WRAP_MODE or UNWRAP_MODE.
According to the
http://download.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#InitaCipher
WRAP_MODE should be used to wrap a java.security.Key into bytes so that the
key can be securely transported and ENCRYPT_MODE should be used to encrypt
data.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]