CipherParametersDESedeParameterspublic class DESParameters extends KeyParameter
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DES_KEY_LENGTH |
| Constructor | Description |
|---|---|
DESParameters(byte[] key) |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isWeakKey(byte[] key,
int offset) |
DES has 16 weak keys.
|
static void |
setOddParity(byte[] bytes) |
DES Keys use the LSB as the odd parity bit.
|
getKeypublic static final int DES_KEY_LENGTH
public static boolean isWeakKey(byte[] key,
int offset)
See "Applied Cryptography" by Bruce Schneier for more information.
public static void setOddParity(byte[] bytes)
bytes - the byte array to set the parity on.