NativeDtlsEngine.decryptAppData12

private ubyte[] decryptAppData12(TlsAead aead, const(ubyte)[] payload, DtlsRecordHeader header)

Decrypt a DTLS 1.2 APPLICATION_DATA record (explicit nonce).

Payload format: explicit_nonce (8) | ciphertext | tag (16)

Parameters

aeadThe read AEAD cipher.
payloadThe encrypted payload (including explicit nonce).
headerThe DTLS record header.

Returns

Decrypted plaintext, or null on failure.