NativeDtlsEngine.decryptAppDataRecord
private
ubyte[] decryptAppDataRecord(DtlsPeerState state,
const(ubyte)[] payload, DtlsRecordHeader header)Decrypt an APPLICATION_DATA record payload.
Handles DTLS 1.2 (explicit nonce) and DTLS 1.3 (XOR nonce).
Parameters
state | The peer state. |
payload | The encrypted record payload. |
header | The DTLS record header. |
Returns
Decrypted plaintext, or null on failure.