|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.bouncycastle.crypto.params.KeyParameter
org.gudy.bouncycastle.crypto.params.DESParameters
public class DESParameters
| 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. |
| Methods inherited from class org.gudy.bouncycastle.crypto.params.KeyParameter |
|---|
getKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DES_KEY_LENGTH
| Constructor Detail |
|---|
public DESParameters(byte[] key)
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||