Top Fields Constructors Methods
org.bouncycastle.crypto.params

public Class DESedeParameters

extends DESParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final int
Inherited from org.bouncycastle.crypto.params.DESParameters:
DES_KEY_LENGTH

Constructor Summary

AccessConstructor and Description
public
DESedeParameters(byte[] key)

Method Summary

Modifier and TypeMethod and Description
public static boolean
isReal2Key(byte[]
bytes making up the key
key
,
int
offset into the byte array the key starts at
offset
)

return true if the passed in key is a real 2 part DES-EDE key.

public static boolean
isReal3Key(byte[]
bytes making up the key
key
,
int
offset into the byte array the key starts at
offset
)

return true if the passed in key is a real 3 part DES-EDE key.

public static boolean
isRealEDEKey(byte[]
bytes making up the key
key
,
int
offset into the byte array the key starts at
offset
)

return true if the passed in key is a real 2/3 part DES-EDE key.

public static boolean
isWeakKey(byte[]
bytes making up the key
key
,
int
offset into the byte array the key starts at
offset
,
int
number of bytes making up the key
length
)

return true if the passed in key is a DES-EDE weak key.

public static boolean
isWeakKey(byte[]
bytes making up the key
key
,
int
offset into the byte array the key starts at
offset
)

Hides org.bouncycastle.crypto.params.DESParameters.isWeakKey.

return true if the passed in key is a DES-EDE weak key.
Inherited from org.bouncycastle.crypto.params.DESParameters:
setOddParity

Field Detail

DES_EDE_KEY_LENGTHback to summary
public static final int DES_EDE_KEY_LENGTH

Constructor Detail

DESedeParametersback to summary
public DESedeParameters(byte[] key)

Method Detail

isReal2Keyback to summary
public static boolean isReal2Key(byte[] key, int offset)

return true if the passed in key is a real 2 part DES-EDE key.

Parameters
key:byte[]

bytes making up the key

offset:int

offset into the byte array the key starts at

isReal3Keyback to summary
public static boolean isReal3Key(byte[] key, int offset)

return true if the passed in key is a real 3 part DES-EDE key.

Parameters
key:byte[]

bytes making up the key

offset:int

offset into the byte array the key starts at

isRealEDEKeyback to summary
public static boolean isRealEDEKey(byte[] key, int offset)

return true if the passed in key is a real 2/3 part DES-EDE key.

Parameters
key:byte[]

bytes making up the key

offset:int

offset into the byte array the key starts at

isWeakKeyback to summary
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:byte[]

bytes making up the key

offset:int

offset into the byte array the key starts at

length:int

number of bytes making up the key

isWeakKeyback to summary
public static boolean isWeakKey(byte[] key, int offset)

Hides org.bouncycastle.crypto.params.DESParameters.isWeakKey.

return true if the passed in key is a DES-EDE weak key.

Parameters
key:byte[]

bytes making up the key

offset:int

offset into the byte array the key starts at

Returns:boolean

Doc from org.bouncycastle.crypto.params.DESParameters.isWeakKey.

true if the given DES key material is weak or semi-weak, false otherwise.