HMac.finish

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

  1. ubyte[] finish(ubyte[] output)
    struct HMac(D, uint blockSize = D.blockSize)
    @safe nothrow @nogc
    ubyte[]
    finish
    (
    ubyte[] output
    )
  2. ubyte[macSize] finish()

Parameters

output ubyte[]

Output buffer for MAC tag.

Return Value

Type: ubyte[]

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

Meta