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-gcm internals: Clarify in_out processing. #2205

Merged
merged 2 commits into from
Jan 1, 2025
Merged

Conversation

briansmith
Copy link
Owner

@briansmith briansmith commented Jan 1, 2025

See individual commit messages for details.

Clarify the invariants in `Overlapping`.

Consistently use `Overlapping::new` for checking of `src`. Clarify the
assumptions we're making about the assembly function's return value.
Consistently use `in_out` for `Overlapping`s and `in_out_slice` for
slices.
Use `in_out` for `Overlapping` values and `in_out_slice` for slices.
Use `Overlapping::new` as the sole way of bounds checking `src`.
@briansmith briansmith self-assigned this Jan 1, 2025
Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.16%. Comparing base (555d598) to head (6d39c75).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2205   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files         158      158           
  Lines       20256    20265    +9     
  Branches      454      454           
=======================================
+ Hits        19682    19691    +9     
  Misses        469      469           
  Partials      105      105           

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

@briansmith briansmith changed the title B/inout more aes-gcm internals: Clarify in_out processing. Jan 1, 2025
@briansmith briansmith merged commit 68dd148 into main Jan 1, 2025
158 checks passed
@briansmith briansmith deleted the b/inout-more branch January 1, 2025 22:18
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