|
2 | 2 | # SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | 4 | set(SECURITY_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/security) |
| 5 | +set(LIBCRYPTOSOC_DIR ${ZEPHYR_HAL_SILABS_EXTRA_MODULE_DIR}/simplicity_sdk/util/third_party/crypto_ip/libcryptosoc) |
5 | 6 | set(MBEDTLS_DIR ${ZEPHYR_MBEDTLS_MODULE_DIR}) |
6 | 7 |
|
7 | 8 | # Get SoC series number, i.e. translate efr32bg22 -> 22, mgm240p -> 24, simg301 -> 301 |
@@ -84,6 +85,42 @@ zephyr_library_sources_ifdef(CONFIG_PSA_CRYPTO_DRIVER_SILABS_HSE |
84 | 85 | ) |
85 | 86 |
|
86 | 87 | # VSE |
87 | | -# TODO |
| 88 | +zephyr_include_directories_ifdef(CONFIG_PSA_CRYPTO_DRIVER_SILABS_VSE |
| 89 | + ${LIBCRYPTOSOC_DIR}/include |
| 90 | + ${LIBCRYPTOSOC_DIR}/src |
| 91 | +) |
| 92 | +zephyr_library_sources_ifdef(CONFIG_PSA_CRYPTO_DRIVER_SILABS_VSE |
| 93 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/cryptoacc_management.c |
| 94 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_driver_key_derivation.c |
| 95 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_driver_trng.c |
| 96 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_opaque_driver_builtin_keys.c |
| 97 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_opaque_driver_mac.c |
| 98 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_aead.c |
| 99 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_cipher.c |
| 100 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_hash.c |
| 101 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_key_derivation.c |
| 102 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_key_management.c |
| 103 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_mac.c |
| 104 | + ${SECURITY_DIR}/sl_component/sl_psa_driver/src/sli_cryptoacc_transparent_driver_signature.c |
| 105 | + |
| 106 | + ${LIBCRYPTOSOC_DIR}/src/ba414ep_config.c |
| 107 | + ${LIBCRYPTOSOC_DIR}/src/ba431_config.c |
| 108 | + ${LIBCRYPTOSOC_DIR}/src/cryptodma_internal.c |
| 109 | + ${LIBCRYPTOSOC_DIR}/src/cryptolib_types.c |
| 110 | + ${LIBCRYPTOSOC_DIR}/src/sx_aes.c |
| 111 | + ${LIBCRYPTOSOC_DIR}/src/sx_blk_cipher.c |
| 112 | + ${LIBCRYPTOSOC_DIR}/src/sx_blk_cipher.h |
| 113 | + ${LIBCRYPTOSOC_DIR}/src/sx_dh_alg.c |
| 114 | + ${LIBCRYPTOSOC_DIR}/src/sx_ecc_curves.c |
| 115 | + ${LIBCRYPTOSOC_DIR}/src/sx_ecc_keygen_alg.c |
| 116 | + ${LIBCRYPTOSOC_DIR}/src/sx_ecdsa_alg.c |
| 117 | + ${LIBCRYPTOSOC_DIR}/src/sx_hash.c |
| 118 | + ${LIBCRYPTOSOC_DIR}/src/sx_math.c |
| 119 | + ${LIBCRYPTOSOC_DIR}/src/sx_memcmp.c |
| 120 | + ${LIBCRYPTOSOC_DIR}/src/sx_memcpy.c |
| 121 | + ${LIBCRYPTOSOC_DIR}/src/sx_primitives.c |
| 122 | + ${LIBCRYPTOSOC_DIR}/src/sx_rng.c |
| 123 | + ${LIBCRYPTOSOC_DIR}/src/sx_trng.c |
| 124 | +) |
88 | 125 |
|
89 | 126 | endif() # PSA Crypto |
0 commit comments