Aegis256x4MACState

AEGIS-256x4 MAC state.

Manages the lifecycle of an aegis256x4_mac_state object in a @nogc and @trusted context.

Constructors

this
this(const(ubyte)[] key, const(ubyte)[] nonce)

Initializes the AEGIS-256x4 MAC state with the provided key and nonce.

Destructor

~this
~this()

Destructor to clean up the MAC state.

Postblit

this(this)
this(this)

Disabled copy constructor to prevent state duplication.

Members

Functions

finalize
int finalize(ubyte[] mac, size_t maclen)

Finalizes the MAC computation, producing the MAC.

reset
void reset()

Resets the MAC state for reuse with the same key and nonce.

update
int update(const(ubyte)[] message)

Updates the MAC state with a message chunk.

verify
int verify(const(ubyte)[] mac, size_t maclen)

Verifies a MAC against the computed MAC.

Meta