Date: Wed, 24 Jun 1998 12:47:23 -0700 (PDT)
From: Jan Luehe <Jan.Luehe@Eng>
Subject: Re: asymmetric encryption with JCE 1.2
To: java-security@java0.javasoft.com, EVANS.CHRIS@canadatrust.com
Chris:
> I was wondering whether or not there was support for encryption with
> asymmetric keys implemented in JCE 1.2.
Absolutely!
> The documentation seems to indicate
> that DES (I'm assuming DES only includes symmetric keys) is the only algorithm
> available to instantiate javax.crypto.Cipher.
The SunJCE provider supplies DES, Triple DES, and PBE encryption.
This does not mean that other types of encryption (supplied
by different providers) cannot be used.
> I was looking for something along the lines of:
>
> Cipher cipher = Cipher.getInstance("RSA");
> or
Yes, that's possible, provided you have installed a provider
that supplies RSA encryption.
> Cipher cipher = Cipher.getInstance("DSA");
That would not make sense, because "DSA" is not reversible,
therefore you cannot use it for encryption, but only for
digital signatures.
> It looks like third party packages (such as Systemics Ltd's Cryptix or RSA's
> JSafe) are the only available options. Is that right?
JSafe 2.0 will be a provider for JCE 1.2, so you will be able
to access their (RSA) services through the JCE 1.2 APIs.
Jan