All Packages Class Hierarchy This Package Previous Next Index
Class au.net.aba.crypto.spec.IDEAKeySpec
java.lang.Object
|
+----au.net.aba.crypto.spec.IDEAKeySpec
- public class IDEAKeySpec
- extends Object
- implements KeySpec
A class that provides a specification for a IDEA key.
-
IDEA_KEY_LEN
-
-
ident
-
-
IDEAKeySpec(byte[])
- Uses the first 16 bytes in key as the IDEA key
-
IDEAKeySpec(byte[], int)
- Uses the first 16 bytes in key, beginning at offset, as the IDEA key
-
getKey()
- Returns the IDEA key.
ident
public static final String ident
IDEA_KEY_LEN
public static final int IDEA_KEY_LEN
IDEAKeySpec
public IDEAKeySpec(byte key[]) throws InvalidKeyException
- Uses the first 16 bytes in key as the IDEA key
- Parameters:
- key - the byte array to use as key material.
- Throws: InvalidKeyException
- if the key material is too short.
IDEAKeySpec
public IDEAKeySpec(byte key[],
int offset) throws InvalidKeyException
- Uses the first 16 bytes in key, beginning at offset, as the IDEA key
- Parameters:
- key - the byte array to use as key material.
- offset - the offset to start at.
- Throws: InvalidKeyException
- if the key material is too short.
getKey
public byte[] getKey()
- Returns the IDEA key.
- Returns:
- the bytes making up the key.
All Packages Class Hierarchy This Package Previous Next Index