Skip to content
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

Extra tests for PSA Interruptible ECC Key Agreement #9109

Closed
paul-elliott-arm opened this issue May 7, 2024 · 2 comments · Fixed by #9735 or Mbed-TLS/TF-PSA-Crypto#120
Closed

Extra tests for PSA Interruptible ECC Key Agreement #9109

paul-elliott-arm opened this issue May 7, 2024 · 2 comments · Fixed by #9735 or Mbed-TLS/TF-PSA-Crypto#120
Assignees
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) component-test Test framework and CI scripts size-m Estimated task size: medium (~1w)

Comments

@paul-elliott-arm
Copy link
Member

paul-elliott-arm commented May 7, 2024

Extra Tests following on from #9107 - testing interruptible functionality (similar to interruptible sign/verify hash) and Negative tests.

@paul-elliott-arm paul-elliott-arm added component-psa PSA keystore/dispatch layer (storage, drivers, …) size-m Estimated task size: medium (~1w) labels May 7, 2024
@minosgalanakis minosgalanakis moved this to PSA Interruptible ECC (Part 2) in Mbed TLS Epics Jul 31, 2024
@gilles-peskine-arm gilles-peskine-arm changed the title Tests for PSA Interruptible ECC Raw Key Agreement Tests for PSA Interruptible ECC Key Agreement Aug 5, 2024
@gilles-peskine-arm
Copy link
Contributor

We can adopt a gray-box approach and decide that interruptible key agreement is close enough to psa_key_agreement that we don't need much separate testing of how it handles attributes, how it constructs a key and the content of the key. So we'll mostly want a couple of positive test cases checking that the key is as expected and a couple of negative test cases checking that some expected validations do take place. The rest of the tests will be specific to interruptible behavior, e.g. querying the number of iops, calling functions in the wrong order, aborting, etc.

@paul-elliott-arm paul-elliott-arm changed the title Tests for PSA Interruptible ECC Key Agreement Extra tests for PSA Interruptible ECC Key Agreement Aug 28, 2024
@paul-elliott-arm paul-elliott-arm added the component-test Test framework and CI scripts label Aug 28, 2024
@github-project-automation github-project-automation bot moved this to PSA Crypto: Interruptable ECC work in Backlog for Mbed TLS Aug 30, 2024
@waleed-elmelegy-arm
Copy link
Contributor

Some cases that need to be handled that came up during implementation:
#9490 (comment)
#9490 (comment)
#9490 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) component-test Test framework and CI scripts size-m Estimated task size: medium (~1w)
Projects
Status: PSA Crypto: Interruptable ECC work
Status: PSA Interruptible ECC
4 participants