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

bigint elem_exp_consttime: Remove gathering during table construction. #1733

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

briansmith
Copy link
Owner

See each individual commit message.

@briansmith briansmith self-assigned this Oct 13, 2023
When this code was written, it wasn't clear which assembly language
functions took a pointer to the entire state vs. just a pointer to
the accumulator (etc.). Now upstream clarified things and we can
clarify this code.
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #1733 (b0d030f) into main (2a0e495) will increase coverage by 0.04%.
Report is 4 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1733      +/-   ##
==========================================
+ Coverage   95.93%   95.98%   +0.04%     
==========================================
  Files         138      138              
  Lines       20610    20611       +1     
  Branches      221      221              
==========================================
+ Hits        19772    19783      +11     
+ Misses        800      790      -10     
  Partials       38       38              
Files Coverage Δ
src/arithmetic/bigint.rs 99.31% <100.00%> (-0.01%) ⬇️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

When `elem_exp_consttime` replaced `BN_mod_exp_mont_consttime` I did
not fully understand the way the table was constructed in the original
function. Recent BoringSSL changes clarify the table construction. Do
it the same way, to restore performance to what it was previously.

This addresses the `// TODO: Optimize this to avoid gathering`.
@briansmith briansmith merged commit 159f52c into main Oct 18, 2023
138 checks passed
@briansmith briansmith deleted the b/monty branch October 18, 2023 18:14
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