Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cryptography/lib/src/cryptography/cipher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ abstract class Cipher {
required SecretKey secretKey,
required List<int> nonce,
required FutureOr<Mac> mac,
List<int> aad = const [],
List<int> aad = const <int>[],
bool allowUseSameBytes = false,
}) async* {
final state = newState();
Expand Down Expand Up @@ -259,10 +259,12 @@ abstract class Cipher {
Future<String> decryptString(
SecretBox secretBox, {
required SecretKey secretKey,
List<int> aad = const <int>[],
}) async {
final clearText = await decrypt(
secretBox,
secretKey: secretKey,
aad: aad,
);
try {
return utf8.decode(clearText);
Expand Down