gnu.crypto.cipher
public final class Anubis extends BaseCipher
Anubis is a 128-bit block cipher that accepts a variable-length key. The cipher is a uniform substitution-permutation network whose inverse only differs from the forward operation in the key schedule. The design of both the round transformation and the key schedule is based upon the Wide Trail strategy and permits a wide variety of implementation trade-offs.
References:
Version: $Revision: 1.10 $
Constructor Summary | |
---|---|
Anubis() Trivial 0-arguments constructor. |
Method Summary | |
---|---|
Iterator | blockSizes() |
Object | clone() |
void | decrypt(byte[] in, int i, byte[] out, int j, Object k, int bs) |
void | encrypt(byte[] in, int i, byte[] out, int j, Object k, int bs) |
Iterator | keySizes() |
Object | makeKey(byte[] uk, int bs) Expands a user-supplied key material into a session key for a designated block size. |
boolean | selfTest() |
Expands a user-supplied key material into a session key for a designated block size.
Parameters: uk the 32N-bit user-supplied key material; 4 <= N <= 10. bs the desired block size in bytes.
Returns: an Object encapsulating the session key.
Throws: IllegalArgumentException if the block size is not 16 (128-bit). InvalidKeyException if the key data is invalid.