aesGcmDecryptPrimitive function
Implementation
Uint8List aesGcmDecryptPrimitive(
Uint8List key,
Uint8List nonce,
Uint8List ciphertext,
Uint8List tag,
Uint8List aad,
) {
return decrypt(
encryptionKey: key,
ciphertextWithAuthTag: Uint8List.fromList([...ciphertext, ...tag]),
nonce: nonce,
aead: aad,
);
}