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.


Variable Index

 o ident

Constructor Index

 o BlowfishKeySpec(byte[])
Uses the first 56 bytes (if available) as the key, starting at 0
 o BlowfishKeySpec(byte[], int)
Uses the first 56 bytes (if available) in key, beginning at offset, as the Blowfish key

Method Index

 o getKey()
Returns the Blowfish key.

Variables

 o ident
 public static final String ident

Constructors

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

Methods

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

Returns:
the bytes making up the key.

All Packages  Class Hierarchy  This Package  Previous  Next  Index