Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class DesKeyGenerator

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

Field Summary

Inherited from org.bouncycastle.crypto.general.CipherKeyGenerator:
randomstrength

Constructor Summary

AccessConstructor and Description
pack-priv

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.general.CipherKeyGenerator.init.

initialise the key generator - if strength is set to zero the key generated will be 64 bits in size, otherwise strength can be 64 or 56 bits (if you don't count the parity bits).

Constructor Detail

DesKeyGeneratorback to summary
pack-priv DesKeyGenerator()

Method Detail

generateKeyback to summary
public byte[] generateKey()

Overrides org.bouncycastle.crypto.general.CipherKeyGenerator.generateKey.

Doc from org.bouncycastle.crypto.general.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.general.CipherKeyGenerator.init.

initialise the key generator - if strength is set to zero the key generated will be 64 bits in size, otherwise strength can be 64 or 56 bits (if you don't count the parity bits).

Parameters
param:KeyGenerationParameters

the parameters to be used for key generation