Class DESedeParameters
java.lang.Object
org.gudy.bouncycastle.crypto.params.KeyParameter
org.gudy.bouncycastle.crypto.params.DESParameters
org.gudy.bouncycastle.crypto.params.DESedeParameters
- All Implemented Interfaces:
CipherParameters
-
Field Summary
FieldsFields inherited from class DESParameters
DES_KEY_LENGTH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DESParameters
setOddParityMethods inherited from class KeyParameter
getKey
-
Field Details
-
DES_EDE_KEY_LENGTH
public static final int DES_EDE_KEY_LENGTH- See Also:
-
-
Constructor Details
-
DESedeParameters
public DESedeParameters(byte[] key)
-
-
Method Details
-
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 keyoffset- offset into the byte array the key starts atlength- number of bytes making up the key
-
isWeakKey
public static boolean isWeakKey(byte[] key, int offset) return true if the passed in key is a DES-EDE weak key.- Parameters:
key- bytes making up the keyoffset- offset into the byte array the key starts at
-