-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add temporary test component for SHA3 testing #10201
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
Add temporary test component for SHA3 testing #10201
Conversation
With the removal of MBEDTLS_SHA3_C the test cases with disabled SHA3 dependency are never executed. Adding a temporary `all.sh` component which disabling the `PSA_WANT_ALG_SHA3_*` macros to cover these test cases. Signed-off-by: Gabor Mezei <[email protected]>
5bcb25b to
8e5ee47
Compare
gilles-peskine-arm
left a comment
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.
Please link to the issue for the removal of the temporary thing. Other than that LGTM
| } | ||
|
|
||
| # Temporary component for SHA3 config option removal | ||
| # Must be removed when SHA3 removal is merged |
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.
Can you please link to the issue? “Temporary” things tend to last when we reach the end of a quarter and stuff gets forgotten for the new priority.
| component_test_full_no_sha3 () { | ||
| msg "build: full config without SHA3" | ||
| scripts/config.py full | ||
| scripts/config.py unset-all PSA_WANT_ALG_SHA3_* |
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.
To avoid breaking if someone has a weird file name:
| scripts/config.py unset-all PSA_WANT_ALG_SHA3_* | |
| scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*' |
Signed-off-by: Gabor Mezei <[email protected]>
gilles-peskine-arm
left a comment
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 the update, LGTM
|
Question: why add this new component on the mbedtls side rather than on the crypto side? |
|
@mpg Because as I understand it, a crypto component is not enough because |
|
With the removal of MBEDTLS_SHA3_C the test cases with disabled SHA3 dependency are never executed. Adding a temporary
all.shcomponent which disabling thePSA_WANT_ALG_SHA3_*macros to cover these test cases.Prerequisite for Mbed-TLS/TF-PSA-Crypto#266
PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.