All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.TwofishKey

java.lang.Object
   |
   +----au.net.aba.crypto.provider.TwofishKey

public class TwofishKey
extends Object
implements SecretKey
A class wrapper for Twofish keys.


Variable Index

 o ident

Constructor Index

 o TwofishKey(byte[])
The basic constructor Key length is variable up to 256 bits.

Method Index

 o getAlgorithm()
returns the algorithm for this key.
 o getEncoded()
returns an encoded representation of this key.
 o getFormat()
returns the format for this key.

Variables

 o ident
 public static final String ident

Constructors

 o TwofishKey
 public TwofishKey(byte rawKey[])
The basic constructor Key length is variable up to 256 bits. (32 bytes)

Parameters:
rawKey - the bytes making up the key.

Methods

 o getAlgorithm
 public String getAlgorithm()
returns the algorithm for this key.

Returns:
the string "Twofish"
 o getFormat
 public String getFormat()
returns the format for this key.

Returns:
the string "RAW"
 o getEncoded
 public byte[] getEncoded()
returns an encoded representation of this key.

Returns:
the key as a byte array

All Packages  Class Hierarchy  This Package  Previous  Next  Index