Top Fields Constructors Methods
org.bouncycastle.crypto.generators

public Class DESedeKeyGenerator

extends DESKeyGenerator
Class Inheritance
Imports
org.bouncycastle.crypto.CryptoServicePurpose, .CryptoServicesRegistrar, .KeyGenerationParameters, org.bouncycastle.crypto.constraints.DefaultServiceProperties, org.bouncycastle.crypto.params.DESedeParameters

Field Summary

Modifier and TypeField and Description
private static final int

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.generators.DESKeyGenerator.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

MAX_ITback to summary
private static final int MAX_IT

Constructor Detail

DESedeKeyGeneratorback to summary
public DESedeKeyGenerator()

Method Detail

generateKeyback to summary
public byte[] generateKey()

Overrides org.bouncycastle.crypto.generators.DESKeyGenerator.generateKey.

Doc from org.bouncycastle.crypto.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.generators.DESKeyGenerator.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