GcmPacketWriter.protect

ubyte[] protect(const(ubyte)[] payload)

Frames and protects one payload.

Parameters

payloadMessage bytes including the message-number byte.

Returns

The complete wire packet: length, ciphertext, tag.