NativeDtlsEngine.encryptAppData13
private
ubyte[] encryptAppData13(DtlsPeerState state, TlsAead aead,
const(ubyte)[] plaintext)Encrypt application data using DTLS 1.3 format (XOR nonce).
DTLS 1.3 AAD (13 bytes): seq_num[0:5] (6) | epoch (2) | type (1) | version (2) | length (2) Record payload: ciphertext | tag (16)
Parameters
state | The peer state. |
aead | The write AEAD cipher. |
plaintext | Application data to encrypt. |
Returns
Complete DTLS record.