Date: Wed, 7 May 1997 11:14:48 -0700
From: Benjamin.Renaud@Eng (Benjamin Renaud)
Message-Id: <199705071814.LAA08169@springbank.eng.sun.com>
To: java-security@web2.javasoft.com, burnettS@RSA.COM
Subject: Re: JCE: algorithm parameters and key size
The name-specification scheme for the factory method allows for
specification of parameters, such as the key length, or padding
scheme:
DES/EDE/CBC
RC2-40
etc.
You provide the approrpriate defaults when none is provided (i.e.
RC2 is 128 bit, DES is ECB and no padding, etc).
The appendix of the JCE should be expanded over time to document those.
If you need info on specific algorithm right away, please send a list
to the java-security alias.
Thanks,
-- Benjamin
|From burnettS@RSA.COM Tue May 6 09:51:36 1997
|From: Steve Burnett <burnettS@RSA.COM>
|To: "'java-security@java.sun.com'" <java-security@web2.javasoft.com>
|Subject: JCE: algorithm parameters and key size
|Date: Tue, 6 May 1997 08:21:15 -0700
|Mime-Version: 1.0
|Content-Transfer-Encoding: 7bit
|
|
| In the JCE, if I want to create a DES object, I call
|Cipher.getInstance ("DES"). But suppose I want to create an object that
|executes an encryption algorithm that requires one or more parameters.
|For instance, RC2 needs to know the effective key bit value. How do I
|set an object's parameters?
|
| Along the same lines, if I want to generate a DES key, I can use
|KeyGenerator.getInstance ("DES") and the generate method. But if I'm
|generating an RC2 key, how do I specify its length?
|
| --Steve Burnett
| burnetts@rsa.com
|
|