public class

DESedeKeyGenerator

extends DESKeyGenerator
java.lang.Object
   ↳ org.bouncycastle.crypto.CipherKeyGenerator
     ↳ org.bouncycastle.crypto.generators.DESKeyGenerator
       ↳ org.bouncycastle.crypto.generators.DESedeKeyGenerator

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.crypto.CipherKeyGenerator
Public Constructors
DESedeKeyGenerator()
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 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.
[Expand]
Inherited Methods
From class org.bouncycastle.crypto.generators.DESKeyGenerator
From class org.bouncycastle.crypto.CipherKeyGenerator
From class java.lang.Object

Public Constructors

public DESedeKeyGenerator ()

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