gnu.crypto.cipher

Class Anubis

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:

  1. The ANUBIS Block Cipher.
    Paulo S.L.M. Barreto and Vincent Rijmen.

Version: $Revision: 1.10 $

Constructor Summary
Anubis()
Trivial 0-arguments constructor.
Method Summary
IteratorblockSizes()
Objectclone()
voiddecrypt(byte[] in, int i, byte[] out, int j, Object k, int bs)
voidencrypt(byte[] in, int i, byte[] out, int j, Object k, int bs)
IteratorkeySizes()
ObjectmakeKey(byte[] uk, int bs)

Expands a user-supplied key material into a session key for a designated block size.

booleanselfTest()

Constructor Detail

Anubis

public Anubis()
Trivial 0-arguments constructor.

Method Detail

blockSizes

public Iterator blockSizes()

clone

public Object clone()

decrypt

public void decrypt(byte[] in, int i, byte[] out, int j, Object k, int bs)

encrypt

public void encrypt(byte[] in, int i, byte[] out, int j, Object k, int bs)

keySizes

public Iterator keySizes()

makeKey

public Object makeKey(byte[] uk, int bs)

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.

selfTest

public boolean selfTest()
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.