EAX class

EAX mode based on CTR and CMAC/OMAC1.

Encrypts plaintext and outputs the ciphertext with the concatenated mac. Decrypts and verifies ciphertext with the concatenated mac and returns the plaintext. Ported from BouncyCastle's Java impl: https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/modes/EAXBlockCipher.java

Implemented types

Constructors

EAX(BlockCipher underlyingCipher)

Properties

algorithmName → String
Get this algorithm's standard name.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
mac ↔ Uint8List
The MAC (also known as Tag), calculated and cached by doFinal.
getter/setter pairoverride-getter
macSize → int
The byte size that the mac calculated by doFinal must be.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
underlyingCipher → BlockCipher
The cipher used in CTR and CMAC
final

Methods

doFinal(Uint8List out, int outOff) → int
Calculates, caches and if used as decrypter also verifies this mac, calls reset and returns the number of bytes written.
override
getOutputSize(int len) → int
Returns the amount of bytes being outputted by the next processBytes and doFinal for len bytes input.
override
getUpdateOutputSize(int len) → int
Returns the amount of bytes being outputted by the next processBytes for len bytes input.
override
init(bool forEncryption, CipherParameters params) → void
Initializes this for addition of AAD and en/decryption of data.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(Uint8List data) → Uint8List
inherited
processAADByte(int inp) → void
Processes further AAD.
override
processAADBytes(Uint8List inp, int inpOff, int len) → void
Processes further AAD.
override
processByte(int inp, Uint8List out, int outOff) → int
Processes the input and returns the amount of bytes written.
override
processBytes(Uint8List inp, int inOff, int len, Uint8List out, int outOff) → int
Processes the input and returns the amount of bytes written.
override
reset() → void
Initializes this with the parameters last given to init.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

factoryConfig → FactoryConfig
final