Skip to content

Commit

Permalink
config: add secure key storage with tf-m
Browse files Browse the repository at this point in the history
[KRKNWK-19489]

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Nov 7, 2024
1 parent 87deede commit 46b4ea3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ config SIDEWALK_MFG_STORAGE_SUPPORT_HEX_v7

config SIDEWALK_CRYPTO_PSA_KEY_STORAGE
bool "Enable psa crypto storage for persistent Sidewalk keys [EXPERIMENTAL]"
default (SIDEWALK && !BUILD_WITH_TFM)
default SIDEWALK
select EXPERIMENTAL
help
Use secure key storage for persistent Sidewalk keys.
Expand Down
17 changes: 12 additions & 5 deletions Kconfig.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,21 @@ config SIDEWALK_CRYPTO
imply PSA_WANT_KEY_TYPE_HMAC
imply PSA_WANT_GENERATE_RANDOM
imply MBEDTLS_ENABLE_HEAP
imply MBEDTLS_PSA_CRYPTO_STORAGE_C if SIDEWALK_CRYPTO_PSA_KEY_STORAGE
imply TRUSTED_STORAGE if SIDEWALK_CRYPTO_PSA_KEY_STORAGE
imply HW_UNIQUE_KEY if SIDEWALK_CRYPTO_PSA_KEY_STORAGE
imply HW_UNIQUE_KEY_RANDOM if SIDEWALK_CRYPTO_PSA_KEY_STORAGE
imply HW_UNIQUE_KEY_WRITE_ON_CRYPTO_INIT if SIDEWALK_CRYPTO_PSA_KEY_STORAGE
help
Sidewalk security module

config SIDEWALK_SECURE_KEY
bool
default SIDEWALK_CRYPTO_PSA_KEY_STORAGE
imply MBEDTLS_PSA_CRYPTO_STORAGE_C
imply TRUSTED_STORAGE if !BUILD_WITH_TFM
imply HW_UNIQUE_KEY if !BUILD_WITH_TFM
imply HW_UNIQUE_KEY_RANDOM if !BUILD_WITH_TFM
imply HW_UNIQUE_KEY_WRITE_ON_CRYPTO_INIT if !BUILD_WITH_TFM
imply TFM_ITS_ENCRYPTED if BUILD_WITH_TFM
help
Sidewalk persistent keys storage module

if SIDEWALK_CRYPTO

choice CC3XX_LOCK_VARIANT
Expand Down

0 comments on commit 46b4ea3

Please sign in to comment.