Skip to content

Add some negative tests for policy checks #192

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

Conversation

gilles-peskine-arm
Copy link
Collaborator

The goal of this PR is to get the work from #106 into the product (in the PSA branch, since this is PSA work). It only contains one commit to add test cases. The rest has already gone in through ARMmbed/mbedtls-psa#266.

Add a few test cases to ensure that alg=0 in policy does not allow
using the key for an operation.

Add a test case to ensure that ANY_HASH does not have a wildcard
meaning for HMAC.
@gilles-peskine-arm gilles-peskine-arm added enhancement New feature or request needs: review The pull request is ready for review. This generally means that it has no known issues. api-spec Issue or PR about the PSA specifications labels Jul 30, 2019
Copy link
Contributor

@AndrzejKurek AndrzejKurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@gilles-peskine-arm
Copy link
Collaborator Author

The PR-head job had an unexplained failure (missing logs). I re-ran the PR-merge job, which has the benefit of an up-to-date merge target, and it passed except for the ABI check which doesn't matter on the API branch.

@gilles-peskine-arm gilles-peskine-arm merged commit fdbc544 into ARMmbed:psa-api-1.0-beta Aug 9, 2019
@gilles-peskine-arm gilles-peskine-arm removed the needs: review The pull request is ready for review. This generally means that it has no known issues. label Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-spec Issue or PR about the PSA specifications enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants