Dtls13Server.encryptRecord

ubyte[] encryptRecord(ContentType contentType, const(ubyte)[] plaintext)

Encrypts a record payload using the current write AEAD.

Parameters

contentTypeThe record content type.
plaintextThe plaintext payload.

Returns

The encrypted DTLS record.