org.bouncycastle.crypto.params
public class DESParameters extends KeyParameter
| Field Summary | |
|---|---|
| static int | DES_KEY_LENGTH |
| Constructor Summary | |
|---|---|
| DESParameters(byte[] key) | |
| Method Summary | |
|---|---|
| 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. |
See "Applied Cryptography" by Bruce Schneier for more information.
Returns: true if the given DES key material is weak or semi-weak, false otherwise.
Parameters: bytes the byte array to set the parity on.