Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DesEdeKeyGenerator

extends CipherKeyGenerator
Class Inheritance
Imports
org.bouncycastle.crypto.internal.KeyGenerationParameters, org.bouncycastle.crypto.internal.params.DesEdeParameters, .DesParameters

Field Summary

Modifier and TypeField and Description
private final FipsAlgorithm
Inherited from org.bouncycastle.crypto.fips.CipherKeyGenerator:
randomstrength

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
public void
init(KeyGenerationParameters
the parameters to be used for key generation
param
)

Overrides org.bouncycastle.crypto.fips.CipherKeyGenerator.init.

initialise the key generator - if strength is set to zero the key generated will be 192 bits in size, otherwise strength can be 128 or 192 (or 112 or 168 if you don't count parity bits), depending on whether you wish to do 2-key or 3-key triple DES.

Field Detail

algorithmback to summary
private final FipsAlgorithm algorithm

Constructor Detail

DesEdeKeyGeneratorback to summary
public DesEdeKeyGenerator(FipsAlgorithm algorithm)

Method Detail

generateKeyback to summary
public byte[] generateKey()

Overrides org.bouncycastle.crypto.fips.CipherKeyGenerator.generateKey.

Doc from org.bouncycastle.crypto.fips.CipherKeyGenerator.generateKey.

generate a secret key.

Returns:byte[]

a byte array containing the key value.

initback to summary
public void init(KeyGenerationParameters param)

Overrides org.bouncycastle.crypto.fips.CipherKeyGenerator.init.

initialise the key generator - if strength is set to zero the key generated will be 192 bits in size, otherwise strength can be 128 or 192 (or 112 or 168 if you don't count parity bits), depending on whether you wish to do 2-key or 3-key triple DES.

Parameters
param:KeyGenerationParameters

the parameters to be used for key generation