DESKeyGenerator, Poly1305KeyGeneratorpublic class CipherKeyGenerator
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.security.SecureRandom |
random |
|
protected int |
strength |
| Constructor | Description |
|---|---|
CipherKeyGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
generateKey() |
generate a secret key.
|
void |
init(KeyGenerationParameters param) |
initialise the key generator.
|
public void init(KeyGenerationParameters param)
param - the parameters to be used for key generationpublic byte[] generateKey()