Skip to content

Commit 7f3242f

Browse files
tomi-fontrlubos
authored andcommitted
samples: persistent_key_usage: use the ZMS settings backend on 54L15
And fix the main configuration file by moving `CONFIG_TFM_ITS_ENCRYPTED=y` to the TF-M board targets' ones. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 9e5b54d commit 7f3242f

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

samples/crypto/persistent_key_usage/boards/nrf5340dk_nrf5340_cpuapp_ns.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
77

88
# Using hardware crypto accelerator
99
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
10+
11+
CONFIG_TFM_ITS_ENCRYPTED=y

samples/crypto/persistent_key_usage/boards/nrf54l15dk_nrf54l15_cpuapp.conf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@
77
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
88
CONFIG_PSA_CRYPTO_DRIVER_CRACEN=y
99

10-
# Use TRUSTED_STORAGE because this is a secure-only board
10+
# Use TRUSTED_STORAGE because this is a non-TF-M board target.
1111
CONFIG_TRUSTED_STORAGE=y
1212

1313
CONFIG_FLASH=y
1414
CONFIG_FLASH_PAGE_LAYOUT=y
1515
CONFIG_FLASH_MAP=y
16-
CONFIG_NVS=y
16+
CONFIG_ZMS=y
1717
CONFIG_SETTINGS=y
18-
CONFIG_SETTINGS_NVS=y
19-
20-
# Comment out for more detailed NVS logging
21-
CONFIG_NVS_LOG_LEVEL_ERR=y
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+
4+
CONFIG_TFM_ITS_ENCRYPTED=y

samples/crypto/persistent_key_usage/boards/nrf54l15pdk_nrf54l15_cpuapp.conf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@
77
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
88
CONFIG_PSA_CRYPTO_DRIVER_CRACEN=y
99

10-
# Use TRUSTED_STORAGE because this is a secure-only board
10+
# Use TRUSTED_STORAGE because this is a non-TF-M board target.
1111
CONFIG_TRUSTED_STORAGE=y
1212

1313
CONFIG_FLASH=y
1414
CONFIG_FLASH_PAGE_LAYOUT=y
1515
CONFIG_FLASH_MAP=y
16-
CONFIG_NVS=y
16+
CONFIG_ZMS=y
1717
CONFIG_SETTINGS=y
18-
CONFIG_SETTINGS_NVS=y
19-
20-
# Comment out for more detailed NVS logging
21-
CONFIG_NVS_LOG_LEVEL_ERR=y

samples/crypto/persistent_key_usage/boards/nrf9151dk_nrf9151_ns.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
77

88
# Using hardware crypto accelerator
99
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
10+
11+
CONFIG_TFM_ITS_ENCRYPTED=y

samples/crypto/persistent_key_usage/boards/nrf9160dk_nrf9160_ns.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
77

88
# Using hardware crypto accelerator
99
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
10+
11+
CONFIG_TFM_ITS_ENCRYPTED=y

samples/crypto/persistent_key_usage/boards/nrf9161dk_nrf9161_ns.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
77

88
# Using hardware crypto accelerator
99
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
10+
11+
CONFIG_TFM_ITS_ENCRYPTED=y

samples/crypto/persistent_key_usage/prj.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ CONFIG_MBEDTLS_HEAP_SIZE=8192
2727
CONFIG_PSA_WANT_KEY_TYPE_AES=y
2828
CONFIG_PSA_WANT_ALG_CTR=y
2929
CONFIG_PSA_WANT_GENERATE_RANDOM=y
30-
31-
CONFIG_TFM_ITS_ENCRYPTED=y

0 commit comments

Comments
 (0)