decrypt

fun decrypt(ciphertext: ByteArray, aad: ByteArray): ByteArray

Decrypts an encrypted message from the sender.

Return

the decrypted message.

Parameters

ciphertext

the encrypted message to decrypt, including the authentication tag at the end.

aad

additional authenticated data.