TlsAead.decryptWithSequence

ubyte[] decryptWithSequence(const(ubyte)[] ciphertext, const(ubyte)[] aad, ulong recordSequence)

Decrypts a record using the nonce for an explicit record sequence number.

Parameters

ciphertextCiphertext + tag.
aadAdditional authenticated data.
recordSequenceThe record's wire sequence number.

Returns

Decrypted plaintext.

Throws

TlsException on decryption failure.