mbedtls icon indicating copy to clipboard operation
mbedtls copied to clipboard

Extra tests for PSA Interruptible ECC Key Agreement

Open paul-elliott-arm opened this issue 9 months ago • 2 comments

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

paul-elliott-arm avatar May 07 '24 16:05 paul-elliott-arm

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.

gilles-peskine-arm avatar Aug 05 '24 16:08 gilles-peskine-arm

Some cases that need to be handled that came up during implementation: https://github.com/Mbed-TLS/mbedtls/pull/9490#discussion_r1759248263 https://github.com/Mbed-TLS/mbedtls/pull/9490#discussion_r1759255733 https://github.com/Mbed-TLS/mbedtls/pull/9490#discussion_r1759266646

waleed-elmelegy-arm avatar Sep 24 '24 17:09 waleed-elmelegy-arm