gnu.crypto.exp
Class Helix
public
class
Helix
extends Object
implements IBlockCipher, IMac
The Helix stream cipher and message authentication code. Helix combines a
word-aligned stream cipher with a message authentication code in a single
cryptographic primitive.
References:
- Niels Ferguson, Doug Whiting, Bruce Schneier, John Kelsey, Stefan Lucks,
and Tadayoshi Kohno. "Helix: Fast Encryption and Authentication in a Single
Cryptographic Primitive". http://www.macfergus.com/helix/helix.pdf
Field Summary |
static int | DECRYPTION
The state constant for decryption and optional MAC. |
static int | ENCRYPTION
The state constant for encryption and optional MAC. |
static int | MAC
The state constant for MAC-only. |
static String | NONCE
Property name for the nonce. |
static String | STATE
Property name for the state. |
public static final int DECRYPTION
The state constant for decryption and optional MAC.
public static final int ENCRYPTION
The state constant for encryption and optional MAC.
public static final int MAC
The state constant for MAC-only.
public static final String NONCE
Property name for the nonce. This parameter is always required
and must be a sixteen-byte array.
public static final String STATE
Property name for the state. This is an Integer containing one
of the constants
ENCRYPTION,
DECRYPTION, or
MAC.
If omitted, ENCRYPTION is assumed.
public Helix()
public Iterator blockSizes()
public Object clone()
public int currentBlockSize()
public void decryptBlock(byte[] in, int inOff, byte[] out, int outOff)
public int defaultBlockSize()
public int defaultKeySize()
public byte[] digest()
public void encryptBlock(byte[] in, int inOff, byte[] out, int outOff)
public void init(Map attributes)
public Iterator keySizes()
public int macSize()
public String name()
public void reset()
public boolean selfTest()
public void update(byte b)
public void update(byte[] buf, int off, int len)