public class DESParameters extends KeyParameter
| Modifier and Type | Field and Description |
|---|---|
static int |
DES_KEY_LENGTH |
| Constructor and Description |
|---|
DESParameters(byte[] key) |
| Modifier and Type | Method and 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.Copyright © 2015. All rights reserved.