Aegis256State.this

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

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

Parameters

key const(ubyte)[]

The encryption key (must be aegis256_KEYBYTES long).

nonce const(ubyte)[]

The nonce (must be aegis256_NPUBBYTES long).

ad const(ubyte)[]

The associated data (optional, can be empty).

Throws

AssertError if key or nonce lengths are invalid.

Meta