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

Jan Luehe (Jan.Luehe@Eng)
Tue, 9 Jun 1998 14:01:55 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David Brownell: "Re: HELP : JCE : How to use KeyPairGenerator with Cipher"
- Previous message: Marianne Mueller: "Re: JCE for JDK 1.1"

    Date: Tue, 9 Jun 1998 14:01:55 -0700 (PDT)

    From: Jan Luehe <Jan.Luehe@Eng>

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

    To: Jan.Luehe@Eng, java-security@web3.javasoft.com, naren@corp.auspex.com

> 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.

You use DES or Triple DES (from JCE) with KeyGenerator, and
Diffie-Hellman (from JCE) or DSA (from JDK) with
KeyPairGenerator.

Jan

- Next message: David Brownell: "Re: HELP : JCE : How to use KeyPairGenerator with Cipher"
- Previous message: Marianne Mueller: "Re: JCE for JDK 1.1"