Top Description Fields Constructors Methods
org.bouncycastle.crypto

public Class CipherKeyGenerator

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.crypto.generators.DESKeyGenerator, org.bouncycastle.crypto.generators.Poly1305KeyGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.constraints.DefaultServiceProperties

The base class for symmetric, or secret, cipher key generators.

Field Summary

Modifier and TypeField and Description
protected SecureRandom
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

a byte array containing the key value.
generateKey
()

generate a secret key.

public void
init(KeyGenerationParameters
the parameters to be used for key generation
param
)

initialise the key generator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

randomback to summary
protected SecureRandom random
strengthback to summary
protected int strength

Constructor Detail

CipherKeyGeneratorback to summary
public CipherKeyGenerator()

Method Detail

generateKeyback to summary
public byte[] generateKey()

generate a secret key.

Returns:byte[]

a byte array containing the key value.

initback to summary
public void init(KeyGenerationParameters param)

initialise the key generator.

Parameters
param:KeyGenerationParameters

the parameters to be used for key generation