GCM.finish

Finish the operation. Does not append mac tag to the cipher text. Mac tag does NOT get verified in decryption mode.

struct GCM(T)
size_t
finish
nothrow
(
ubyte[] macBuf
,
ubyte[] output
)
in { assert (initialized, "not initialized"); assert (output.length >= buf.length, "output buffer too small"); assert (macBuf.length == 16, "MAC buffer must be 16 bytes."); }
if (
is(T == void) ||
(
T.blockSize == 16
)
)

Return Value

Type: size_t

number of bytes written into out.

Meta