public class DESedeParameters extends DESParameters
Modifier and Type | Field and Description |
---|---|
static int |
DES_EDE_KEY_LENGTH |
DES_KEY_LENGTH
Constructor and Description |
---|
DESedeParameters(byte[] key) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isReal2Key(byte[] key,
int offset)
return true if the passed in key is a real 2 part DES-EDE key.
|
static boolean |
isReal3Key(byte[] key,
int offset)
return true if the passed in key is a real 3 part DES-EDE key.
|
static boolean |
isRealEDEKey(byte[] key,
int offset)
return true if the passed in key is a real 2/3 part DES-EDE key.
|
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.
|
setOddParity
getKey
public static final int DES_EDE_KEY_LENGTH
public static boolean isWeakKey(byte[] key, int offset, int length)
key
- bytes making up the keyoffset
- offset into the byte array the key starts atlength
- number of bytes making up the keypublic static boolean isWeakKey(byte[] key, int offset)
key
- bytes making up the keyoffset
- offset into the byte array the key starts atpublic static boolean isRealEDEKey(byte[] key, int offset)
key
- bytes making up the keyoffset
- offset into the byte array the key starts atpublic static boolean isReal2Key(byte[] key, int offset)
key
- bytes making up the keyoffset
- offset into the byte array the key starts atpublic static boolean isReal3Key(byte[] key, int offset)
key
- bytes making up the keyoffset
- offset into the byte array the key starts at