-
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
ECP: Add Unit Tests for secp256k1 #7427
ECP: Add Unit Tests for secp256k1 #7427
Conversation
@minosgalanakis this is a deliverable for this quarter, it should have a |
94db26c
to
f2568ca
Compare
As before it is based on PR #7425 . Please review only last 3 commits if need to. It will rebased after #7425 has been merged. |
f2568ca
to
410a061
Compare
PR Rebased on latest development. Ready to review |
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.
1 thing jumped out. Everything else looks ok, but need to do a slightly deeper pass.
library/ecp_curves.c
Outdated
@@ -4618,6 +4618,8 @@ int mbedtls_ecp_mod_p224k1(mbedtls_mpi *); | |||
#endif | |||
#if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED) | |||
static int ecp_mod_p256k1(mbedtls_mpi *); | |||
MBEDTLS_STATIC_TESTABLE | |||
int ecp_mod_p256k1(mbedtls_mpi *); |
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.
Shouldn't this be:
int ecp_mod_p256k1(mbedtls_mpi *); | |
int mbedtls_ecp_mod_p256k1(mbedtls_mpi *); |
410a061
to
afca0d5
Compare
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.
Only a minor non-blocking issue found otherwise looks good to me.
This patch introduces basic unit-testing for the `ecp_mod_p256k1()`. The method is exposed through the ecp_invasive interface, and the standard testing data is being provided by the python framework. Signed-off-by: Minos Galanakis <[email protected]>
Signed-off-by: Minos Galanakis <[email protected]>
…192k1` Signed-off-by: Minos Galanakis <[email protected]>
afca0d5
to
4dfed0a
Compare
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.
LGTM
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.
LGTM
Description
Resolves #7258
Gatekeeper checklist