Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Nov 18, 2024
1 parent 950a204 commit 324b035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/packet/aead_encrypted_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class AeadEncryptedData extends ContainedPacket {
);

final processed = dataLength - tagLength * (dataLength / chunkSize).ceil();
final crypted = Uint8List(processed);
final crypted = Uint8List(processed + (forEncryption ? aead.tagLength : 0));
for (var chunkIndex = 0; chunkIndex == 0 || data.isNotEmpty;) {
final chunkIndexData = adataBuffer.sublist(5, 13);
final size = chunkSize < data.length ? chunkSize : data.length;
Expand Down

0 comments on commit 324b035

Please sign in to comment.