Aegis256x2MACState.verify

Verifies a MAC against the computed MAC.

struct Aegis256x2MACState
@nogc @trusted
int
verify
(
const(ubyte)[] mac
,
size_t maclen
)

Parameters

mac const(ubyte)[]

The MAC to verify (must be aegis256x2_ABYTES_MIN to aegis256x2_ABYTES_MAX).

maclen size_t

Length of the MAC.

Return Value

Type: int

0 if valid, -1 if verification fails, or another negative error code on failure.

Meta