| Modifier and Type | Field and Description |
|---|---|
| public static final int | DES_EDE_KEY_LEN
The constant which defines the length of a DESede key in bytes. |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | DESedeKeySpec(byte[]
the buffer with the DES-EDE key material. The first
24 bytes of the buffer are copied to protect against subsequent
modification. key)Creates a DESedeKeySpec object using the first 24 bytes in
|
| public | DESedeKeySpec(byte[]
the buffer with the DES-EDE key material. The first
24 bytes of the buffer beginning at key, int offset inclusive
are copied to protect against subsequent modification.the offset in offset)key, where the DES-EDE key
material starts.Creates a DESedeKeySpec object using the first 24 bytes in
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the DES-EDE key. Returns a new array each time this method is called.Returns the DES-EDE key. |
| public static boolean | Returns: true if the given DES-EDE key is parity-adjusted, false otherwisea byte array which holds the key value key, int the offset into the byte array offset)Checks if the given DES-EDE key, starting at |
| DES_EDE_KEY_LEN | back to summary |
|---|---|
| public static final int DES_EDE_KEY_LEN The constant which defines the length of a DESede key in bytes. | |
| key | back to summary |
|---|---|
| private final byte[] key | |
| DESedeKeySpec | back to summary |
|---|---|
| public DESedeKeySpec(byte[] key) throws InvalidKeyException Creates a DESedeKeySpec object using the first 24 bytes in
The bytes that constitute the DES-EDE key are those between
| |
| DESedeKeySpec | back to summary |
|---|---|
| public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException Creates a DESedeKeySpec object using the first 24 bytes in
The bytes that constitute the DES-EDE key are those between
| |
| getKey | back to summary |
|---|---|
| public byte[] getKey() Returns the DES-EDE key.
| |
| isParityAdjusted | back to summary |
|---|---|
| public static boolean isParityAdjusted(byte[] key, int offset) throws InvalidKeyException Checks if the given DES-EDE key, starting at
| |