Top Description Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class CipherKeyGenerator

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.crypto.fips.DesEdeKeyGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.internal.KeyGenerationParameters

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
pack-priv

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
pack-priv 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