EtMPacketWriter.protect

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

Frames, encrypts, and authenticates one payload.

Parameters

payloadMessage bytes including the message-number byte.

Returns

The complete wire packet: clear length, ciphertext, MAC.