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