You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Subbu Srinivasan <ss...@cisco.com> on 2003/11/05 19:54:07 UTC

Integrating with Java Keystore

Has anyone used the encryption library by referring to keys from a Java
Keystore?

For eg:

            cipher = XMLCipher.getInstance(XMLCipher.TRIPLEDES);
            cipher.init(XMLCipher.DECRYPT_MODE, pkey);

java.lang.SecurityException: Unsupported keysize or algorithm parameters

The key in the java keystore is a 512 size RSA key.

Thanks.

Subbu Srinivasan


RE: Integrating with Java Keystore

Posted by Angel Contreras <ac...@asoban.bo>.
Subbu,
The java keystore generates asymmetric keys, so, if you try to encryption
with TripleDes algorithm you can’t use this keys, DES Keys are 64 bytes
long.

Regards,

Angel Contreras Joffré
JEFE DE SISTEMAS
ASOBAN
Telf.: (591-2)2334794 - 2361308
Fax.: (591-2)2391093


-----Mensaje original-----
De: Subbu Srinivasan [mailto:ssriniva@cisco.com]
Enviado el: miércoles, 05 de noviembre de 2003 14:54
Para: security-dev@xml.apache.org
Asunto: Integrating with Java Keystore


Has anyone used the encryption library by referring to keys from a Java
Keystore?

For eg:

            cipher = XMLCipher.getInstance(XMLCipher.TRIPLEDES);
            cipher.init(XMLCipher.DECRYPT_MODE, pkey);

java.lang.SecurityException: Unsupported keysize or algorithm parameters

The key in the java keystore is a 512 size RSA key.

Thanks.

Subbu Srinivasan