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: Split FFI helpers into their own submodule. #2102

Merged
merged 1 commit into from
Jun 15, 2024
Merged

Conversation

briansmith
Copy link
Owner

Make it clearer which types are used in the FFI and start separating the (unsafe) code for dealing with the C/assembly implementations from the (mostly safe) rest of the code.

git difftool HEAD^1:src/aead/aes.rs src/aead/aes/ffi.rs.

@briansmith briansmith self-assigned this Jun 14, 2024
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 97.93814% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.25%. Comparing base (e3593b4) to head (a6c2366).
Report is 2 commits behind head on main.

Files Patch % Lines
src/aead/aes.rs 90.90% 1 Missing ⚠️
src/aead/aes/ffi.rs 98.83% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2102      +/-   ##
==========================================
+ Coverage   97.24%   97.25%   +0.01%     
==========================================
  Files         143      144       +1     
  Lines       20144    20148       +4     
  Branches      228      228              
==========================================
+ Hits        19589    19595       +6     
- Misses        527      528       +1     
+ Partials       28       25       -3     

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

debug_assert_ne!(key.rounds, 0); // Sanity check initialization.
Ok(key)
} else {
Err(error::Unspecified)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is expected that this isn't reached because we've met all the preconditions to ensure the function won't fail.

},
};
}?;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't reachable because the branch where the called function returns an error isn't reachable. No different tha before. We'll deal with this in a future change.

Make it clearer which types are used in the FFI and start
separating the (unsafe) code for dealing with the C/assembly
implementations from the (mostly safe) rest of the code.

`git difftool HEAD^1:src/aead/aes.rs src/aead/aes/ffi.rs`.
@briansmith briansmith merged commit b454dfd into main Jun 15, 2024
152 checks passed
@briansmith briansmith deleted the b/aes-split branch June 15, 2024 05:33
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