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

Partially-Reduced Montgomery Multiplication/Squaring #133

Closed
mratsim opened this issue Jan 23, 2021 · 0 comments · Fixed by #176
Closed

Partially-Reduced Montgomery Multiplication/Squaring #133

mratsim opened this issue Jan 23, 2021 · 0 comments · Fixed by #176
Labels
constant time ⏳ Enhancement is suitable for secret data performance 🏁

Comments

@mratsim
Copy link
Owner

mratsim commented Jan 23, 2021

We can accelerate exponentiations and addition chains in finite fields by skipping the final substraction.
The constant-time final substraction involves 3 passes over the data:

  • testing if result < modulus
  • substraction
  • conditional mov

Reference

@mratsim mratsim added constant time ⏳ Enhancement is suitable for secret data performance 🏁 labels Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
constant time ⏳ Enhancement is suitable for secret data performance 🏁
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant