org.bouncycastle.crypto

Class CipherKeyGenerator

public class CipherKeyGenerator extends Object

The base class for symmetric, or secret, cipher key generators.
Field Summary
protected SecureRandomrandom
protected intstrength
Method Summary
byte[]generateKey()
generate a secret key.
voidinit(KeyGenerationParameters param)
initialise the key generator.

Field Detail

random

protected SecureRandom random

strength

protected int strength

Method Detail

generateKey

public byte[] generateKey()
generate a secret key.

Returns: a byte array containing the key value.

init

public void init(KeyGenerationParameters param)
initialise the key generator.

Parameters: param the parameters to be used for key generation