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.
-
ident
-
-
TwofishKey(byte[])
- The basic constructor
Key length is variable up to 256 bits.
-
getAlgorithm()
- returns the algorithm for this key.
-
getEncoded()
- returns an encoded representation of this key.
-
getFormat()
- returns the format for this key.
ident
public static final String ident
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.
getAlgorithm
public String getAlgorithm()
- returns the algorithm for this key.
- Returns:
- the string "Twofish"
getFormat
public String getFormat()
- returns the format for this key.
- Returns:
- the string "RAW"
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