TlsAead.decrypt

ubyte[] decrypt(const(ubyte)[] ciphertext, const(ubyte)[] aad)

Decrypts a TLS record fragment.

Parameters

ciphertextCiphertext + tag.
aadAdditional authenticated data (record header).

Returns

Decrypted plaintext.

Throws

TlsException on decryption failure.