mbedtls
mbedtls copied to clipboard
Add key agreement negative tests
Description
Add new psa_key_agreement()
functionality to both key exercises (agreement with self) and key_agreement_fail()
tests. This brings its testing in line with psa_raw_key_agreement()
and resolves #9513
Having to update the psa_sim generated files in this PR was unfortunate, as it showed we should have done it in previous PRs (I hadn't realised this would need to be done, and of course nothing failed at that point). Thus I have had to correct some of the previous headers in order to not have to unnecessarily add psa_key_id_t to the list of serialised classes. This will cause conflicts later unfortunately.
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.
- [ ] changelog ~~provided |~~ not required because: Extra tests for previously added feature with changelog
- [ ] development PR ~~provided # |~~ not required because: This is the development PR
- [ ] framework PR ~~provided Mbed-TLS/mbedtls-framework# |~~ not required - no framework element
- [ ] 3.6 PR ~~provided # |~~ not required because: New feature, no backports
- [ ] 2.28 PR ~~provided # |~~ not required because: New feature, no backports
- tests provided ~~| not required because:~~