public class TwofishKeyGenerator extends VarLengthKeyGenerator
An application uses
for creating a KeyGenerator object for the Twofish algorithm. For actually generating the requested secret key from the KeyGenerator object just created, an application calls theKeyGenerator key_gen = KeyGenerator.getInstance("Twofish");
generateKeymethod 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();
|Constructor and Description|
Creates a new Twofish key generator.
engineGenerateKey, engineInit, engineInit, engineInit