v2 #12

Merged
hugo merged 21 commits from v2 into master 2023-04-05 15:03:47 +00:00
2 changed files with 5 additions and 7 deletions
Showing only changes of commit 2f22cc549d - Show all commits

View File

@ -288,13 +288,6 @@ class AES implements Cipher<AESCipherChunk> {
);
}
if (bytes.isEmpty) {
throw NativeCryptoException(
code: NativeCryptoExceptionCode.invalidData,
message: 'Platform returned no data on chunk #$count',
);
}
return bytes;
}
}

View File

@ -6,8 +6,13 @@
abstract class Constants {
/// The default chunk size in bytes used for encryption and decryption.
///
/// ~32MB
static const int defaultChunkSize = 33554432;
/// The length of the initialization vector in bytes used for AES GCM.
static const int aesGcmNonceLength = 12;
/// The length of the tag in bytes used for AES GCM.
static const int aesGcmTagLength = 16;
}