gnu.crypto.exp
Class Helix
- Cloneable, 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
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.
|
DECRYPTION
public static final int DECRYPTION
The state constant for decryption and optional MAC.
ENCRYPTION
public static final int ENCRYPTION
The state constant for encryption and optional MAC.
MAC
public static final int MAC
The state constant for MAC-only.
NONCE
public static final String NONCE
Property name for the nonce. This parameter is always required
and must be a sixteen-byte array.
STATE
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.
decryptBlock
public void decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- decryptBlock in interface IBlockCipher
digest
public byte[] digest()
- digest in interface IMac
encryptBlock
public void encryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- encryptBlock in interface IBlockCipher
update
public void update(byte b)
- update in interface IMac
update
public void update(byte[] buf,
int off,
int len)
- update in interface IMac
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.