# Re: HELP : JCE : How to use KeyPairGenerator with Cipher

Narendra Patil (naren@corp.auspex.com)
Tue, 09 Jun 1998 13:22:24 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Felix Ladnik: "JCE for JDK 1.1"
- Previous message: Marie Ricketts: "Signed Applets"

    Message-Id: <3.0.1.32.19980609132224.00a83180@mailhost.auspex.com>

    Date: Tue, 09 Jun 1998 13:22:24 -0700

    To: Jan Luehe <Jan.Luehe@Eng>, Jan.Luehe@Eng, java-security@web3.javasoft.com,

    From: Narendra Patil <naren@corp.auspex.com>

    Subject: Re: HELP : JCE : How to use KeyPairGenerator with Cipher

    In-Reply-To: <libSDtMail.9806091250.11873.luehe@shorter>

Thanks for the info. But then which algorithm from the SunJCE provider
would save me from getting NoSuchAlgorithmException ?
I have tried DSA and DES ? If I do not use KeyPairGenerator and simply
use KeyGenerator then DES work OK.

But with KeyPairGenerator it does not. I am sure I am missing something.
But not able to figure it out.

regards,
Narendra

>
>> When I run this program, I get following output :
>> %java test3
>> Caught exception java.security.NoSuchAlgorithmException: algorithm RSA not
>> available.
>
>
>This is because the (default) SunJCE provider does not supply
>an implementation of RSA - due to RSA licensing restrictions.
>
>If you have access to the Bsafe toolkit from RSA Data Security
>(RSA DSI) or another implementation of RSA, you could write your
>own provider of RSA (by writing Java wrapper code around the
>Bsafe native implementation).
>
>Please note that the Jsafe toolkit from RSA DSI supplies
>a Java implementation of RSA. Jsafe 2.0, which will be released
>sometime this summer/fall, will be compatible with JCE 1.2,
>i.e., you will be able to attach their (RSA) provider to JCE 1.2.
>
>Jan
>
>
>

- Next message: Felix Ladnik: "JCE for JDK 1.1"
- Previous message: Marie Ricketts: "Signed Applets"