[
https://issues.apache.org/jira/browse/WSS-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colm O hEigeartaigh closed WSS-304.
-----------------------------------
> 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
> Affects Versions: 1.6.2
> Reporter: Sergey Zhemzhitsky
> Assignee: Colm O hEigeartaigh
> Fix For: 1.6.3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]