-
Notifications
You must be signed in to change notification settings - Fork 799
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
Change constant time and cache resistant ECC mulmod #2894
Conversation
063b316
to
95df2ca
Compare
@@ -89,6 +89,30 @@ mp_digit get_digit(mp_int* a, int n) | |||
return (n >= a->used || n < 0) ? 0 : a->dp[n]; | |||
} | |||
|
|||
int mp_cond_copy(mp_int* a, int copy, mp_int* b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but please add a basic comment here describing why and what this does for ease of future maintenance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments added.
Ensure points being operated on change to make constant time.
This pull request seem to have been associated with CVE-2020-11713. |
Yes, this pull request is based on the report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks good.
Ensure points being operated on change to make constant time.