au.net.aba.crypto.spec
Class IDEAKeySpec
java.lang.Object
|
+--au.net.aba.crypto.spec.IDEAKeySpec
- public class IDEAKeySpec
- extends java.lang.Object
- implements java.security.spec.KeySpec
A class that provides a specification for a IDEA key.
Constructor Summary |
IDEAKeySpec(byte[] key)
Uses the first 16 bytes in key as the IDEA key |
IDEAKeySpec(byte[] key,
int offset)
Uses the first 16 bytes in key, beginning at offset, as the IDEA key |
Method Summary |
byte[] |
getKey()
Returns the IDEA key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
IDEA_KEY_LEN
public static final int IDEA_KEY_LEN
IDEAKeySpec
public IDEAKeySpec(byte[] key)
throws java.security.InvalidKeyException
- Uses the first 16 bytes in key as the IDEA key
- Parameters:
key
- the byte array to use as key material.- Throws:
- java.security.InvalidKeyException - if the key material is too short.
IDEAKeySpec
public IDEAKeySpec(byte[] key,
int offset)
throws java.security.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:
- java.security.InvalidKeyException - if the key material is too short.
getKey
public byte[] getKey()
- Returns the IDEA key.
- Returns:
- the bytes making up the key.