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

ec: NFC: Refactor scalar_sum to eliminate LIMBS_add_mod use. #1813

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

briansmith
Copy link
Owner

Use the pattern we typically use where one argument is passed by value.

This lets us use limbs_add_assign_mod, eliminating the unsafe direct use of LIMBS_add_mod. This will make future refactoring easier.

This also eliminates the need to construct and zeroize a new scalar r for the result.

Use the pattern we typically use where one argument is passed by value.

This lets us use `limbs_add_assign_mod`, eliminating the `unsafe`
direct use of `LIMBS_add_mod`. This will make future refactoring easier.

This also eliminates the need to construct and zeroize a new scalar `r`
for the result.
@briansmith briansmith self-assigned this Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (57fc486) 96.00% compared to head (41cd289) 95.99%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1813      +/-   ##
==========================================
- Coverage   96.00%   95.99%   -0.01%     
==========================================
  Files         137      137              
  Lines       20753    20748       -5     
  Branches      226      226              
==========================================
- Hits        19923    19917       -6     
  Misses        798      798              
- Partials       32       33       +1     

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

@briansmith briansmith merged commit bc00f7e into main Nov 22, 2023
137 of 138 checks passed
@briansmith briansmith deleted the b/scalar-sum branch November 22, 2023 22:38
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