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

montgomery: Do runtime length checking during Montgomery multiplication. #1851

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

briansmith
Copy link
Owner

Our expectation is that these checks will never trigger errors because the prerequisites are always checked. However, the checks don't cost anything significant and this clarifies the memory safety.

@briansmith briansmith self-assigned this Dec 5, 2023
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (6347be9) 96.02% compared to head (9a393e1) 95.96%.

Files Patch % Lines
src/arithmetic/error.rs 0.00% 8 Missing ⚠️
src/arithmetic/montgomery.rs 84.61% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1851      +/-   ##
==========================================
- Coverage   96.02%   95.96%   -0.06%     
==========================================
  Files         136      137       +1     
  Lines       20717    20709       -8     
  Branches      226      226              
==========================================
- Hits        19893    19873      -20     
- Misses        790      802      +12     
  Partials       34       34              

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

@briansmith briansmith force-pushed the b/bn_mul_mont-2 branch 3 times, most recently from 7629aff to e16defd Compare December 6, 2023 17:27
@briansmith briansmith changed the title montgomery: Do runtime limb lengths during Montgomery multiplication. montgomery: Do runtime length checking during Montgomery multiplication. Dec 6, 2023
@briansmith
Copy link
Owner Author

Rebased on main after #1856 was merged.

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