-
Notifications
You must be signed in to change notification settings - Fork 708
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
Use WNAF-based multiplication for ECDSA verification #1764
Conversation
The efficiency of this will be improved in future commits.
Previously we did N doublings for G + N doublings for P = 2N doublings. Now, we do N doublings.
Codecov Report
@@ Coverage Diff @@
## main #1764 +/- ##
==========================================
+ Coverage 96.00% 96.04% +0.03%
==========================================
Files 138 141 +3
Lines 20746 21154 +408
Branches 226 231 +5
==========================================
+ Hits 19918 20318 +400
- Misses 790 798 +8
Partials 38 38
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@vkrasnov I think this might become a better basis for the P-521 ECDSA verification. My plan is to replace all the "nistz" C code for P-384 (and P-521) with this generalized Rust code.
WDYT? |
Yeah I wanted to do something like this myself, but wanted to avoid a big change. I am on vacation but will take a look next week. |
Closing this in favor of #1768, which strips out the |
Implement a generic ECDSA WNAF-based twin-multiplication function.