You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: crypto: Add and refactor wrapped key support in PSA crypto tests
This commit consolidates and refactors wrapped key test functionality in
the PSA crypto test suite, improving maintainability and readability.
Key updates include:
1. Added support for testing wrapped keys in PSA crypto tests.
2. Introduced a new Kconfig option TEST_WRAPPED_KEYS to enable wrapped
key testing.
3. Updated AEAD, Cipher, Hash, Key Agreement, and Sign test cases to:
- Include sl_si91x_psa_wrap.h when CONFIG_TEST_WRAPPED_KEYS is set.
- Configure key lifetime using
PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION for wrapped key tests.
- Import wrapped keys for AES, ChaChaPoly, and ECDSA when wrapper
mode is active.
- Print debug messages when wrapper key mode is enabled.
4. Moved wrapper key configuration to the 917-specific implementation
and cleaned up redundant SoC-level handling.
5. Replaced preprocessor checks with IS_ENABLED() to improve readability
and ensure both code paths are compiled and type-checked.
6. Cleaned up redundant preprocessor blocks, fixed indentation, and
resolved build and style compliance issues per Zephyr guidelines.
7. Normalized comment alignment and indentation to meet clang-format and
checkpatch requirements.
These updates enhance test coverage, maintain consistency, and simplify
wrapped key configuration across PSA crypto test modules.
Signed-off-by: Aasim Shaik <[email protected]>
0 commit comments