aeadDecrypt method
Decrypts a message using AEAD.
Throws an AskarKeyException if decryption fails.
Implementation
Uint8List aeadDecrypt({
required Uint8List ciphertext,
required Uint8List nonce,
Uint8List? tag,
Uint8List? aad,
}) {
try {
return askarKeyAeadDecrypt(
localKeyHandle,
ciphertext,
nonce,
tag: tag,
aad: aad,
).getValueOrException();
} catch (e) {
throw AskarKeyException('Error on AEAD Decryption: $e');
}
}