gnu.crypto.mode

Class EAX

public class EAX extends Object implements IAuthenticatedMode

A conventional two-pass authenticated-encrypted mode, EAX. EAX is a Authenticated Encryption with Additional Data (AEAD) scheme, which provides protection and authentication for the message, and provides authentication of an (optional) header. EAX is composed of the counter mode (CTR) and the one-key CBC MAC (OMAC).

This class makes full use of the IAuthenticatedMode interface, that is, all methods of both IMode and IMac can be used as specified in the IAuthenticatedMode interface.

References:

  1. M. Bellare, P. Rogaway, and D. Wagner; A Conventional Authenticated-Encryption Mode.
Constructor Summary
EAX(IBlockCipher cipher, int cipherBlockSize)
Method Summary
IteratorblockSizes()
Objectclone()
intcurrentBlockSize()
voiddecryptBlock(byte[] in, int inOff, byte[] out, int outOff)
intdefaultBlockSize()
intdefaultKeySize()
byte[]digest()
voiddigest(byte[] out, int outOffset)
voidencryptBlock(byte[] in, int inOff, byte[] out, int outOff)
voidinit(Map attrib)
IteratorkeySizes()
intmacSize()
Stringname()
voidreset()
booleanselfTest()
voidupdate(byte[] in, int inOff, byte[] out, int outOff)
voidupdate(byte b)
voidupdate(byte[] buf, int off, int len)

Constructor Detail

EAX

public EAX(IBlockCipher cipher, int cipherBlockSize)

Method Detail

blockSizes

public Iterator blockSizes()

clone

public Object clone()

currentBlockSize

public int currentBlockSize()

decryptBlock

public void decryptBlock(byte[] in, int inOff, byte[] out, int outOff)

defaultBlockSize

public int defaultBlockSize()

defaultKeySize

public int defaultKeySize()

digest

public byte[] digest()

digest

public void digest(byte[] out, int outOffset)

encryptBlock

public void encryptBlock(byte[] in, int inOff, byte[] out, int outOff)

init

public void init(Map attrib)

keySizes

public Iterator keySizes()

macSize

public int macSize()

name

public String name()

reset

public void reset()

selfTest

public boolean selfTest()

update

public void update(byte[] in, int inOff, byte[] out, int outOff)

update

public void update(byte b)

update

public void update(byte[] buf, int off, int len)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.