org.bouncycastle.crypto.params

Class DESedeParameters

Implemented Interfaces:
CipherParameters

public class DESedeParameters
extends DESParameters

Field Summary

static int
DES_EDE_KEY_LENGTH

Fields inherited from class org.bouncycastle.crypto.params.DESParameters

DES_KEY_LENGTH

Constructor Summary

DESedeParameters(byte[] key)

Method Summary

static boolean
isWeakKey(byte[] key, int offset)
return true if the passed in key is a DES-EDE weak key.
static boolean
isWeakKey(byte[] key, int offset, int length)
return true if the passed in key is a DES-EDE weak key.

Methods inherited from class org.bouncycastle.crypto.params.DESParameters

isWeakKey, setOddParity

Methods inherited from class org.bouncycastle.crypto.params.KeyParameter

getKey

Field Details

DES_EDE_KEY_LENGTH

public static final int DES_EDE_KEY_LENGTH
Field Value:
24

Constructor Details

DESedeParameters

public DESedeParameters(byte[] key)

Method Details

isWeakKey

public static boolean isWeakKey(byte[] key,
                                int offset)
return true if the passed in key is a DES-EDE weak key.
Overrides:
isWeakKey in interface DESParameters
Parameters:
key - bytes making up the key
offset - offset into the byte array the key starts at

isWeakKey

public static boolean isWeakKey(byte[] key,
                                int offset,
                                int length)
return true if the passed in key is a DES-EDE weak key.
Parameters:
key - bytes making up the key
offset - offset into the byte array the key starts at
length - number of bytes making up the key