DESedeKeyGeneratorpublic class DESKeyGenerator extends CipherKeyGenerator
random, strength| Constructor | Description |
|---|---|
DESKeyGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
generateKey() |
generate a secret key.
|
void |
init(KeyGenerationParameters param) |
initialise the key generator - if strength is set to zero
the key generated will be 64 bits in size, otherwise
strength can be 64 or 56 bits (if you don't count the parity bits).
|
public void init(KeyGenerationParameters param)
init in class CipherKeyGeneratorparam - the parameters to be used for key generationpublic byte[] generateKey()
CipherKeyGeneratorgenerateKey in class CipherKeyGenerator