-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Driver-only ECC: all three top-level modules #7321
Conversation
283946c
to
a420b29
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.
Just a first pass, making myself familiar with things.
1f2104e
to
9979fe9
Compare
Actually this adds both the accelerated test as well as the reference. Both of them are used to evaluate the driver's coverage with analyze_outcomes.py script. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…ge analysis All these EC based algs are now tested all at once in test_psa_crypto_config_[accel/reference]_all_ec_algs_use_psa() functions. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
We keep tests without USE_PSA for single accel components (i.e. ECDH, ECDSA, ECJPAKE), but when testing for all 3 accelerated at the same time we use USE_PSA for better test coverage. However for this purpose there is already the: component_test_psa_crypto_config_[reference/accel]_all_ec_algs_use_psa() so we can delete this extra component. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…e_psa() Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
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, minor improvements (probably) for a separate PR suggested, thanks!
# Used by tests/scripts/analyze_outcomes.py for comparison purposes. | ||
component_test_psa_crypto_config_reference_ecdh_use_psa () { | ||
msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with reference ECDH + USE_PSA" | ||
# Make build-in fallback not available |
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.
Very minor:
# Make build-in fallback not available | |
# Make built-in fallback not available |
# Algorithms and key types to accelerate | ||
loc_accel_list="ALG_ECDH KEY_TYPE_ECC_KEY_PAIR KEY_TYPE_ECC_PUBLIC_KEY" | ||
component_test_psa_crypto_config_accel_pake() { | ||
msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated PAKE" |
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.
Minor, and pre-existing in other new test components related to acceleration:
The first message should rather be build
, or make
, not test
, which is reserved for make test
or ssl-opt.sh
:)
# - component_test_psa_crypto_config_accel_all_ec_algs_use_psa; | ||
# - component_test_psa_crypto_config_reference_all_ec_algs_use_psa. | ||
# This supports comparing their test coverage with analyze_outcomes.py. | ||
config_psa_crypto_config_all_ec_algs_use_psa () { |
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.
Minor: There's no mention of the input argument.
@AndrzejKurek thanks for the review and feedback!
There is #7103 which is waiting for this one to be merged, so in case there is no other change required for this PR, I will apply your suggestions in that PR |
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.
Approving the rebase. I've double-checked that the 3 commits that have been removed had all landed development in the meantime.
This is the closing PR of the accelerated EC based algs: all 3 algorithms (ECDSA, ECDH, ECJPAKE) are accelerated at the same time.
Resolves #7272
Depends on #7312
Gatekeeper checklist