-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Backport 2.28: Fix the detection of not-supported mechanisms in systematically generated PSA tests #9025
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
Merged
gilles-peskine-arm
merged 17 commits into
Mbed-TLS:mbedtls-2.28
from
gilles-peskine-arm:psa-storage-test-cases-never-supported-2.28
Jun 14, 2024
Merged
Backport 2.28: Fix the detection of not-supported mechanisms in systematically generated PSA tests #9025
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c6fe12a
hack_dependencies_not_implemented: more verbose indication
gilles-peskine-arm c3b261a
Sort dependencies in automatically generated PSA test cases
gilles-peskine-arm c7b58d5
PSA test case generation: dependency inference class: base case
gilles-peskine-arm c113b42
hack_dependencies_not_implemented: Also read inferred PSA_WANT symbols
gilles-peskine-arm d3286af
hack_dependencies_not_implemented: apply to positive test cases
gilles-peskine-arm 6281cf4
PSA test case generation: dependency inference class: key generation
gilles-peskine-arm 1ae57ec
PSA test case generation: dependency inference class: key not supported
gilles-peskine-arm 764c2d3
PSA test case generation: dependency inference class: operation fail
gilles-peskine-arm b6e362b
PSA sign/verify: more uniform error on an unsupported hash
gilles-peskine-arm 995d7d4
Do run not-supported test cases on not-implemented mechanisms
gilles-peskine-arm 519762b
Clean up not-implemented detection
gilles-peskine-arm 696b7ee
TestCase: add mechanism to skip a test case
gilles-peskine-arm b8ddf6a
PSA test case generation: comment out always-skipped test cases
gilles-peskine-arm 0311b21
Explain why DH and DSA are still explicitly excluded
gilles-peskine-arm 47398e0
Add some missing test case dependencies
gilles-peskine-arm 9ffffab
Fix edge case with half-supported ECDSA
gilles-peskine-arm fd9e506
Missing word
gilles-peskine-arm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This isn't quite right. For example, mechanisms that are commented out in
crypto_config.hwill be considered as implemented, and conversely if you run this script with an editedcrypto_config.hthen some supported mechanisms might not be considered to be implemented. I'm considering some solutions, but unsure yet whether to apply them here or in a follow-up, because this pull request is already pretty long and I think I've reached a decent stepping point.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.
I would definitely agree that this PR is long enough already - I would have said a follow up would be better at this point.
As it stands this is exactly the same as it has been for some time, although the better detection implemented in this PR will possibly cause more issues. Is it worth documenting the issue, if a fix is forthcoming soon?
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 overall issue remains #5390.