Message-Id: <c=US%a=_%p=RSA_Data_Securit%l=LOBESTER-970506152115Z-1930@LOBESTER.rsa.com>
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
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