|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.crypto.KeyGeneratorSpi
|
+--iaik.security.cipher.VarLengthKeyGenerator
|
+--iaik.security.cipher.RCxKeyGenerator
This class provides the functionality of KeyGenerator for generating keys to be used by the RC2 and RC4 ciphers.
An application uses
KeyGenerator key_gen = KeyGenerator.getInstance("RC2");
respectively
KeyGenerator key_gen = KeyGenerator.getInstance("RC4");
for creating a KeyGenerator object for the RC2/RC4 algorithm. For actually
generating the requested secret TripleDES key from the KeyGenerator object
just created, an application calls the generateKey method after
having initialized the generator with some random seed or relied on the
default system-provided source of randomness:
SecretKey rcx_key = key_gen.generateKey();
KeyGenerator,
KeyGeneratorSpi,
SecretKey,
SecretKey,
RC2,
RC4| Constructor Summary | |
RCxKeyGenerator()
Creates a new RCx key generator. |
|
| Methods inherited from class iaik.security.cipher.VarLengthKeyGenerator |
engineGenerateKey,
engineInit,
engineInit,
engineInit |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RCxKeyGenerator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||