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

stateThe peer state.
payloadThe encrypted record payload.
headerThe DTLS record header.

Returns

Decrypted plaintext, or null on failure.