gnu.crypto.mode
Class EAX
- Cloneable, IAuthenticatedMode, IBlockCipher, IMac, IMode
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:
- M. Bellare, P. Rogaway, and D. Wagner; A
Conventional Authenticated-Encryption Mode.
Iterator | blockSizes()
|
Object | clone()
|
int | currentBlockSize()
|
void | decryptBlock(byte[] in, int inOff, byte[] out, int outOff)
|
int | defaultBlockSize()
|
int | defaultKeySize()
|
byte[] | digest()
|
void | digest(byte[] out, int outOffset)
|
void | encryptBlock(byte[] in, int inOff, byte[] out, int outOff)
|
void | init(Map attrib)
|
Iterator | keySizes()
|
int | macSize()
|
String | name()
|
void | reset()
|
boolean | selfTest()
|
void | update(byte b)
|
void | update(byte[] in, int inOff, byte[] out, int outOff)
|
void | update(byte[] buf, int off, int len)
|
decryptBlock
public void decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- decryptBlock in interface IBlockCipher
digest
public byte[] digest()
- digest in interface IMac
digest
public void digest(byte[] out,
int outOffset)
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[] in,
int inOff,
byte[] out,
int outOff)
- update in interface IMode
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.