|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.spec.DESedeKeySpec
DES-EDE key specification.
Attention: This is not a SUN implementation!
This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see
http://java.sun.com/security/JCE1.2/spec/apidoc/index.html
This class represents a DES-EDE (TRIPLE DES) key specification. A key specification is a transparent representation of the key material constituting the key.
KeySpec
Field Summary | |
static int |
DES_EDE_KEY_LEN
|
Constructor Summary | |
DESedeKeySpec(byte[] key)
Creates a DES-EDE key specification by using the first 24 bytes of the supplied byte array as the DES-EDE key. |
|
DESedeKeySpec(byte[] key,
int offset)
Creates a DES-EDE key specification by using 24 bytes of the supplied byte array as DES-EDE key, beginning at the given offset. |
Method Summary | |
byte[] |
getKey()
Returns the inherent DES-EDE key as byte representation. |
static boolean |
isParityAdjusted(byte[] key,
int offset)
Checks if the DES-EDE key, supplied in a byte array beginning at the given offset, is parity-adjusted. |
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_EDE_KEY_LEN
Constructor Detail |
public DESedeKeySpec(byte[] key) throws InvalidKeyException
key
- the byte array holding the DES-EDE keyInvalidKeyException
- if the given key is shorter than 24 bytespublic DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException
key
- the byte array holding the DES-EDE keyoffset
- the offset indicating the start position within the input key byte arrayInvalidKeyException
- if the given key, beginning at offset,
is shorter than 24 bytesMethod Detail |
public byte[] getKey()
public static boolean isParityAdjusted(byte[] key, int offset) throws InvalidKeyException
key
- the byte array holding the DES-EDE keyoffset
- the offset indicating the start position within the input key byte arraytrue
if the given DES-EDE key is parity-adjusted, false
otherwiseInvalidKeyException
- if the given key material, beginning at offset,
is shorter than 24 bytes
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |