Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aes: Clarify empty buffer handling in AES-CTR. #2197

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

briansmith
Copy link
Owner

At one point we required f to be able to handle empty inputs, but a later refactoring changed that, and added the necessary check before calling f, but we forgot to update the comment.

To further clarify things, use NonZeroU32 when incrementing the counter, since a zero increment would result in a reused counter.

@briansmith briansmith self-assigned this Dec 26, 2024
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.93%. Comparing base (a8619bc) to head (4eca639).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2197   +/-   ##
=======================================
  Coverage   96.92%   96.93%           
=======================================
  Files         154      154           
  Lines       20235    20234    -1     
  Branches      461      461           
=======================================
+ Hits        19612    19613    +1     
  Misses        518      518           
+ Partials      105      103    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

At one point we required `f` to be able to handle empty inputs,
but a later refactoring changed that, and added the necessary
check before calling `f`, but we forgot to update the comment.

To further clarify things, use `NonZeroU32` when incrementing
the counter, since a zero increment would result in a reused
counter.
@briansmith briansmith merged commit 072ee75 into main Dec 26, 2024
158 checks passed
@briansmith briansmith deleted the b/clarify-zero-aes branch December 26, 2024 21:43
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.

1 participant