|
||||||||||
| 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.CAST128KeyGenerator
This class provides the functionality of KeyGenerator for generating keys to be used by the CAST128 cipher.
An application uses
KeyGenerator key_gen = KeyGenerator.getInstance("CAST128");
for creating a KeyGenerator object for the CAST128 algorithm. For actually
generating the requested secret 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 new_key = key_gen.generateKey();
KeyGenerator,
KeyGeneratorSpi,
SecretKey,
SecretKey,
CAST128| Constructor Summary | |
CAST128KeyGenerator()
Create a new CAST128 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 CAST128KeyGenerator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||