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

chacha: Reduce API surface for Counter/IV management. #2233

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

briansmith
Copy link
Owner

Replace the pub(super) IV/Counter API with a simpler, private one.

This makes it clearer that the callers are handling nonces correctly. This will also make it easier to refactor the Counter handling later.

Replace the `pub(super)` IV/Counter API with a simpler, private one.

This makes it clearer that the callers are handling nonces correctly.
This will also make it easier to refactor the Counter handling later.
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 6 lines in your changes missing coverage. Please review.

Project coverage is 96.94%. Comparing base (7e93807) to head (90e9453).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/aead/chacha20_poly1305_openssh.rs 60.00% 4 Missing ⚠️
src/polyfill/slice.rs 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2233      +/-   ##
==========================================
- Coverage   97.00%   96.94%   -0.07%     
==========================================
  Files         165      165              
  Lines       20506    20508       +2     
  Branches      464      465       +1     
==========================================
- Hits        19892    19881      -11     
- Misses        505      517      +12     
- Partials      109      110       +1     

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

@briansmith briansmith merged commit cc18993 into main Jan 17, 2025
162 of 164 checks passed
@briansmith briansmith deleted the b/chacha20-reduce-iv-surface branch January 17, 2025 00:15
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