-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix wrong modulo call in ecp_double_add_mxz #3209
Conversation
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.
Thanks for catching and fixing this. Looks good to me.
The CI failures are due to a temporary issue on development, now fixed. Despite this the test coverage is satisfactory so the CI results are acceptable for merging. |
I checked the CI results and the only failures are due to a known issue that was fixed in development in the meantime (which shows as the pr-merge job passes), so that's as good as a pass. |
@aurel32 Our current policy is to acknowledge all external contributions in the ChangeLog. Could you add a new file under
Thanks! |
ecp_double_add_mxz wrongly does an MPI addition followed by a call to MOD_MUL instead of MOD_ADD. This is more visible since the mbedtls_mpi_xxx_mod functions have been added in commit 3b3b34f ("Replace some macros by functions"). Fix that by using mbedtls_mpi_add_mod instead. The testsuite still passes after that change. Signed-off-by: Aurelien Jarno <[email protected]>
6ab5c79
to
66deb38
Compare
I have just done that and force pushed the result. |
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.
Thanks for adding the entry. LGTM.
I checked the CI results, and again the only failures are due to issues in development (at the point this PR was based on it) and unrelated to this PR - and the pr-merge job passes. So nothing preventing this PR from being merged. |
Description
ecp_double_add_mxz wrongly does an MPI addition followed by a call to
MOD_MUL instead of MOD_ADD. This is more visible since the
mbedtls_mpi_xxx_mod functions have been added in commit 3b3b34f
("Replace some macros by functions").
Fix that by using mbedtls_mpi_add_mod instead. The testsuite still
passes after that change.
Status
READY
Requires Backporting
I am not sure it requires backporting, I don't think it as any real impact.
Migrations
NO
Todos