Skip to content

Fix AES-CTR large chunk handling#308

Closed
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:codex/fix-aes-ctr-large-chunks
Closed

Fix AES-CTR large chunk handling#308
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:codex/fix-aes-ctr-large-chunks

Conversation

@harrshita123

Copy link
Copy Markdown
Contributor

Fixes #307.

Summary

  • account for bytes already consumed when selecting the next AES-CTR input chunk
  • add regression coverage for a 4097-byte input
  • verify byte encryption/decryption round-trips and matches streaming encryption

Testing

  • dart format --output none --set-exit-if-changed lib/src/impl_ffi/impl_ffi.aesctr.dart test/aes_ctr_counter_wrap_test.dart
  • dart analyze --fatal-warnings .
  • dart test -p vm test/aes_ctr_counter_wrap_test.dart
  • dart test -p chrome test/aes_ctr_counter_wrap_test.dart
  • dart test -p vm

@harrshita123 harrshita123 force-pushed the codex/fix-aes-ctr-large-chunks branch from 79836c8 to b4264e2 Compare July 5, 2026 16:38
@harrshita123 harrshita123 deleted the codex/fix-aes-ctr-large-chunks branch July 5, 2026 16:40
@harrshita123 harrshita123 restored the codex/fix-aes-ctr-large-chunks branch July 5, 2026 16:49
@harrshita123 harrshita123 reopened this Jul 5, 2026
@harrshita123 harrshita123 deleted the codex/fix-aes-ctr-large-chunks branch July 5, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: native AES-CTR corrupts stream chunks larger than 4096 bytes

1 participant