org.bouncycastle.crypto
Class CipherKeyGenerator
java.lang.Object
org.bouncycastle.crypto.CipherKeyGenerator
public class CipherKeyGenerator
extends java.lang.Object
The base class for symmetric, or secret, cipher key generators.
random
protected SecureRandom random
strength
protected int strength
generateKey
public byte[] generateKey()
generate a secret key.
- a byte array containing the key value.
init
public void init(KeyGenerationParameters param)
initialise the key generator.
param
- the parameters to be used for key generation