GMac.finish

Close the MAC, producing the final MAC value. Leaves the MAC reset.

struct GMac(T)
void
finish
nothrow
(
ubyte[] output
)
in { assert (initialized, "GMac not initialized. call init() first."); assert (output.length >= gcm.macSize, "output buffer too short for MAC"); }

Parameters

output
Type: ubyte[]

Output buffer for MAC tag.

Return Value

Type: void

Returns a slice pointing to the MAC tag in the output buffer.

Meta