-
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 secp224k1 #7425
ECP: Add Unit Tests for secp224k1 #7425
Conversation
397b9ce
to
761104d
Compare
d779def
to
1229efb
Compare
a18fe9b
to
3346e0f
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.
The changes for the P192K1 testing is not part of this PR and must be removed.
tests/suites/test_suite_ecp.function
Outdated
|
||
TEST_EQUAL(mbedtls_ecp_mod_p224k1(&X), 0); | ||
TEST_LE_U(mbedtls_mpi_core_bitlen(X.p, X.n), 224); | ||
mbedtls_mpi_mod_raw_fix_quasi_reduction(X.p, &m); |
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.
As the description of this issue recommend the mbedtls_mpi_mod_mpi()
should be used here.
@minosgalanakis this is a deliverable for this quarter, it should have a |
3346e0f
to
56ca0e3
Compare
I have rebased and addressed the comment. The code is still based on #7424 since it makes resolving conflicts easier and we can test the code as we expect it to come in. Please only review the last three commits When the pr for |
This patch introduces basic unit-testing for the `ecp_mod_p224k1()`. 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]>
This patch introduces a `MBEDTLS_STATIC_TESTABLE` helper method which exposes `ecp_mod_p256k1()` to the test-framework Signed-off-by: Minos Galanakis <[email protected]>
…192k1` Signed-off-by: Minos Galanakis <[email protected]>
56ca0e3
to
357b9e1
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 #7257
Gatekeeper checklist