Werner Dittmann <Werner.Dittmann <at> t-online.de> writes:

> 
> Alexey,
> 
> I've used such a mechansims in Apache's WSS4J project:
> 
> - generate a symmetric key, e.g. for 3DES
> - encrypt some data with this key
> - uses RSA/ECB/PKCS1Padding to encrypt this symmetric
>   key (not DESedeWarp, this would be used if you encrypt
>   - wrap - a key with e.g. 3DES). Alternatively you may
>   use RSA-OAEP (also provided by BC) to encrypt the
>   generated symmetric key.
> 
> The module in WSS4J that uses and implements this is
> WSEncryptEnvelop.java
> 
> Regards,
> Werner

Hi Werner,
My fault - I misspelled. I actually meant "DESede/CBC/ISO10126Padding", which is
not a valid cipher in IBMJCE (wrong padding). "RSA/ECB/PKCS1Padding" is not a
supported cipher either. BouncyCastle can not be used as a JCE provider in my
environment.
Thanks,
Alexey

Reply via email to