-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add an invert_vartime method to ConstMontyForm #728
Comments
Adds (back) support for computing modular inversions in variable-time with respect to the value being inverted, which computes the specific number of safegcd divsteps to perform based on the input, as opposed to using a worst case number based on the bit length. Closes #728
#731 adds the only implementation of This isn't quite what you're asking for in the description: unfortunately it's constant-time with respect to |
I wanted this in the hope of gaining some performance in elliptic curve field inversions. |
#634 is probably the best option for improving performance of field inversions |
Now that the inv method is constant time, it could be useful to have a vartime alternative.
This issue is a feature request for a method like this:
that computes the inverse of x in the field of cardinal MOD, constant time in regards x but vartime in regards to MOD.
The text was updated successfully, but these errors were encountered: