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.


Variable Index

 o IDEA_KEY_LEN
 o ident

Constructor Index

 o IDEAKeySpec(byte[])
Uses the first 16 bytes in key as the IDEA key
 o IDEAKeySpec(byte[], int)
Uses the first 16 bytes in key, beginning at offset, as the IDEA key

Method Index

 o getKey()
Returns the IDEA key.

Variables

 o ident
 public static final String ident
 o IDEA_KEY_LEN
 public static final int IDEA_KEY_LEN

Constructors

 o 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.
 o 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.

Methods

 o getKey
 public byte[] getKey()
Returns the IDEA key.

Returns:
the bytes making up the key.

All Packages  Class Hierarchy  This Package  Previous  Next  Index