# KeyPairGenerator and Cipher Interoperability

Jason Eaton (jeaton@cybersource.com)
Thu, 02 Jul 1998 13:39:10 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Tao, Wei: "How can I write file in my PC"
- Previous message: Amitabh Bihari: "Program compiling but not running..."

    Date: Thu, 02 Jul 1998 13:39:10 -0700

    From: Jason Eaton <jeaton@cybersource.com>

    To: java-security@java.sun.com

    Subject: KeyPairGenerator and Cipher Interoperability

I am trying to generate a asymetric key via KeyPairGenerator and use
this
key in a Cipher. I cannot seem to get the appropriate match of
algorithms.

What combination of algorithms would work with Jdk1.2b3 and JCE1.2? I
need
to use both the public key and the private key in two different Ciphers.

By the way, I also tried to use the keytool to generate a private key
and
use this for Cipher initialization. This failed. The algorithm used is
to
create the private key is not available for use in the Cipher class.

The ONLY algorithm that the Cipher seems to support is
"DES/CBC/PKCS5Padding".

Help ... Thanks.

- Next message: Tao, Wei: "How can I write file in my PC"
- Previous message: Amitabh Bihari: "Program compiling but not running..."