Dtls13Client.encryptRecord

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

Encrypts a record payload using the current write AEAD.

Parameters

contentTypeThe record content type.
payloadThe plaintext payload.

Returns

The encrypted DTLS record.