Aegis256x2State.this

Initializes the AEGIS-256x2 state with the provided key, nonce, and associated data.

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

Parameters

key const(ubyte)[]

The encryption key (must be aegis256x2_KEYBYTES long).

nonce const(ubyte)[]

The nonce (must be aegis256x2_NPUBBYTES long).

ad const(ubyte)[]

The associated data (optional, can be empty).

Throws

AssertError if key or nonce lengths are invalid.

Meta