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): DTLS 1.3 AAD (13 bytes, the full record header): type (1) | version (2) | epoch (2) | seq_num (6) | 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.