java.lang.Object | |
↳ | javax.crypto.spec.DESKeySpec |
The key specification for a DES key.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DES_KEY_LEN | The length of a DES key in bytes. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
DESKeySpec from the first 8 bytes of the
specified key data. | |||||||||||
Creates a new
DESKeySpec from the first 8 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. | |||||||||||
Returns whether the specified key data starting at
offset is
weak or semi-weak. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The length of a DES key in bytes.
Creates a new DESKeySpec
from the first 8 bytes of the
specified key data.
key | the key data. |
---|
InvalidKeyException | if the length of the specified key data is less than 8. |
---|
Creates a new DESKeySpec
from the first 8 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 specified key data starting at offset is less than 8. |
---|
Returns a copy of the key.
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 8, or the key is null. |
---|
Returns whether the specified key data starting at offset
is
weak or semi-weak.
key | the key data. |
---|---|
offset | the offset to start checking at. |
true
if the specified key data is weak or semi-weak.InvalidKeyException | if the length of the key data starting at offset is less than 8, or it is null. |
---|