public class

DESKeyGenerator

extends CipherKeyGenerator
java.lang.Object
   ↳ org.bouncycastle.crypto.CipherKeyGenerator
     ↳ org.bouncycastle.crypto.generators.DESKeyGenerator
Known Direct Subclasses

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.crypto.CipherKeyGenerator
Public Constructors
DESKeyGenerator()
Public Methods
byte[] generateKey()
generate a secret key.
void init(KeyGenerationParameters param)
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).
[Expand]
Inherited Methods
From class org.bouncycastle.crypto.CipherKeyGenerator
From class java.lang.Object

Public Constructors

public DESKeyGenerator ()

Public Methods

public byte[] generateKey ()

generate a secret key.

Returns
  • a byte array containing the key value.

public void init (KeyGenerationParameters param)

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 the parameters to be used for key generation