You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2011/08/15 14:45:27 UTC

[jira] [Resolved] (WSS-304) WSSecEncryptedKey should initialize cipher using WRAP_MODE instead of ENCRYPT_MODE.

     [ https://issues.apache.org/jira/browse/WSS-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved WSS-304.
-------------------------------------

    Resolution: Fixed

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org