diff --git a/cryptography/lib/src/cryptography/cipher.dart b/cryptography/lib/src/cryptography/cipher.dart index 8d0033a..51ebe31 100644 --- a/cryptography/lib/src/cryptography/cipher.dart +++ b/cryptography/lib/src/cryptography/cipher.dart @@ -217,7 +217,7 @@ abstract class Cipher { required SecretKey secretKey, required List nonce, required FutureOr mac, - List aad = const [], + List aad = const [], bool allowUseSameBytes = false, }) async* { final state = newState(); @@ -259,10 +259,12 @@ abstract class Cipher { Future decryptString( SecretBox secretBox, { required SecretKey secretKey, + List aad = const [], }) async { final clearText = await decrypt( secretBox, secretKey: secretKey, + aad: aad, ); try { return utf8.decode(clearText);