| java.lang.Object | |
| ↳ | javax.crypto.spec.DESedeKeySpec |
The key specification for a triple-DES (DES-EDE) key.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | DES_EDE_KEY_LEN | The length of a DES-EDE key in bytes. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
DESedeKeySpec instance from the first 24 (
DES_EDE_KEY_LEN) bytes of the specified key data.
| |||||||||||
Creates a new
DESedeKeySpec instance from the first 24 (
DES_EDE_KEY_LEN ) bytes of the specified key data starting at
offset.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a copy of the key.
| |||||||||||
Returns whether the specified key data starting at
offset is
parity-adjusted.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The length of a DES-EDE key in bytes.
Creates a new DESedeKeySpec instance from the first 24 (
DES_EDE_KEY_LEN) bytes of the specified key data.
| key | the key data. |
|---|
| InvalidKeyException | if the length of the key data is less than 24. |
|---|---|
| NullPointerException | if the key data is null. |
Creates a new DESedeKeySpec instance from the first 24 (
DES_EDE_KEY_LEN ) bytes of the specified key data starting at
offset.
| key | the key data |
|---|---|
| offset | the offset to start at. |
| InvalidKeyException | if the length of the key data starting at offset is less than 24. |
|---|---|
| NullPointerException | if the key data is null. |
Returns whether the specified key data starting at offset is
parity-adjusted.
| key | the key data. |
|---|---|
| offset | the offset to start checking at. |
true if the specified key data is parity-adjusted,
false otherwise.| InvalidKeyException | if the length of the key data starting at offset is less than 24. |
|---|