HMac.finish

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

struct HMac(D, uint blockSize = D.blockSize)
@safe
ubyte[]
finish
nothrow @nogc
(
ubyte[] output
)
if (
isDigest!D
)

Parameters

output
Type: ubyte[]

Output buffer for MAC tag.

Return Value

Type: ubyte[]

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

Meta