Aegis128x4State.this

Initializes the AEGIS-128x4 state with the provided key, nonce, and associated data.

struct Aegis128x4State
@nogc @trusted
this
(
const(ubyte)[] key
,
const(ubyte)[] nonce
,
const(ubyte)[] ad = null
)

Parameters

key const(ubyte)[]

The encryption key (must be aegis128x4_KEYBYTES long).

nonce const(ubyte)[]

The nonce (must be aegis128x4_NPUBBYTES long).

ad const(ubyte)[]

The associated data (optional, can be empty).

Throws

AssertError if key or nonce lengths are invalid.

Meta