gnu.crypto.mode
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:
Constructor Summary | |
---|---|
EAX(IBlockCipher cipher, int cipherBlockSize) |
Method Summary | |
---|---|
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[] in, int inOff, byte[] out, int outOff) |
void | update(byte b) |
void | update(byte[] buf, int off, int len) |