tests: crypto: psa_crypto: Refactor and add SiWx91x opaque tests #123
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.
Refactor test cases to enable transparent and opaque variants in the same test binary. Test both generated and imported key material.
Enable a limited set of opaque tests on SiWx91x. SiWx91x only supports AEAD and ECC with opaque keys. Security configuration must be provisioned to the device to be able to execute the opaque tests.
Note
Refactors PSA Crypto tests to run transparent and opaque (generated/imported) variants with driver-gated coverage, adds SiWx91x provisioning guidance, and updates build/test config.
generate_keyandlocationparams; addZTESTvariants for transparent and opaque across:AES-CCM,AES-GCM,CHACHA20_POLY1305AES-CBC(multipart/single),AES-ECB,CHACHA20ECDSA secp256r1(optional verify for opaque)ECDH X25519TEST_OPAQUE_*and skips (e.g., no import, no multipart, no verify where limited).wrapped_keystest variant.CMakeLists.txt: add driver-specificTEST_OPAQUE_*defines (full for HSE; limited for SiWx91x:NO_IMPORT_KEY,NO_MULTIPART,NO_VERIFY).testcase.yaml: setCONFIG_MBEDTLS_PSA_STATIC_KEY_SLOTS=nand adjust SW-only config; keep platform allow lists.README.mddetailing SiWx91x provisioning and MIC configuration steps.REUSE.tomlwith default SPDX annotations.Written by Cursor Bugbot for commit b5b384b. This will update automatically on new commits. Configure here.