Skip to content

Commit 53a7b9d

Browse files
asmellbyjhedberg
authored andcommitted
soc: silabs: Add symbol for Mbed TLS builtin keys
This is temporarily added to zephyr-silabs while awaiting the merge of the feature upstream. Add a new Kconfig symbol MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS to wrap the Mbed TLS configuration option with the same name. Built-in key support enables platforms implementing mbedtls_psa_platform_get_builtin_key() to use keys derived from a hardware unique key or stored in a secure element. Upstream-status: pr <zephyrproject-rtos/zephyr#95636> Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 477dfa9 commit 53a7b9d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

modules/hal_silabs/simplicity_sdk/inc/sl_mbedtls_config_zephyr.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#ifndef SL_MBEDTLS_CONFIG_ZEPHYR_H
66
#define SL_MBEDTLS_CONFIG_ZEPHYR_H
77

8+
#if defined(CONFIG_MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)
9+
#define MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
10+
#endif
11+
812
#include "sli_mbedtls_omnipresent.h"
913

1014
/* Legacy mbed TLS ALT APIs are not accelerated in Zephyr

soc/silabs/silabs_s2/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@ config MBEDTLS_USER_CONFIG_FILE
2424
default "sl_mbedtls_config_zephyr.h" \
2525
if (PSA_CRYPTO_DRIVER_SILABS_HSE || PSA_CRYPTO_DRIVER_SILABS_VSE)
2626

27+
config MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
28+
bool "Built-in key support in PSA Crypto core"
29+
help
30+
Enable support for platform built-in keys in PSA Crypto. Built-in keys
31+
are typically derived from a hardware unique key or stored in a secure
32+
element. Mbed TLS uses key IDs from MBEDTLS_PSA_KEY_ID_BUILTIN_MIN to
33+
MBEDTLS_PSA_KEY_ID_BUILTIN_MAX for built-in keys. The platform must
34+
implement mbedtls_psa_platform_get_builtin_key().
35+
2736
endif
2837
endif

0 commit comments

Comments
 (0)