Skip to content

Commit 455083c

Browse files
alxelaxtomi-font
authored andcommitted
[nrf fromtree] Bluetooth: Mesh: use secure storage in ble mesh
Commit: - adds dependency of the mbedtls psa usage on secure storage - removes PSA ITS emulator and enables usage of the secure storage in ble mesh bsim tests - enables secure storage in all ble mesh and related samples Signed-off-by: Aleksandr Khromykh <[email protected]> (cherry picked from commit 967b096) Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 1576958 commit 455083c

File tree

15 files changed

+17
-228
lines changed

15 files changed

+17
-228
lines changed

modules/mbedtls/configs/config-tls-generic.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,6 @@
482482
#define MBEDTLS_PSA_P256M_DRIVER_ENABLED
483483
#endif
484484

485-
#if defined(CONFIG_ARCH_POSIX) && !defined(CONFIG_PICOLIBC) && !defined(CONFIG_SECURE_STORAGE)
486-
#define MBEDTLS_PSA_ITS_FILE_C
487-
#define MBEDTLS_PSA_CRYPTO_STORAGE_C
488-
#define MBEDTLS_FS_IO
489-
#endif
490-
491485
#if defined(CONFIG_SECURE_STORAGE)
492486
#define MBEDTLS_PSA_CRYPTO_STORAGE_C
493487
#endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SECURE_STORAGE=n

samples/bluetooth/mesh/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CONFIG_FLASH=y
55
CONFIG_FLASH_MAP=y
66
CONFIG_NVS=y
77
CONFIG_SETTINGS=y
8+
CONFIG_SECURE_STORAGE=y
89
CONFIG_HWINFO=y
910

1011
CONFIG_BT=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SECURE_STORAGE=n

samples/bluetooth/mesh_demo/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CONFIG_FLASH_MAP=y
3131
CONFIG_NVS=y
3232
CONFIG_SETTINGS=y
3333
CONFIG_BT_MESH_RPL_STORE_TIMEOUT=600
34+
CONFIG_SECURE_STORAGE=y
3435

3536
# Limit the number of key slots in PSA Crypto core to reduce
3637
# RAM footprint
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SECURE_STORAGE=n

samples/bluetooth/mesh_provisioner/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ CONFIG_FLASH_MAP=y
4545
CONFIG_NVS=y
4646
CONFIG_SETTINGS=y
4747
CONFIG_BT_MESH_RPL_STORE_TIMEOUT=600
48+
CONFIG_SECURE_STORAGE=y
4849

4950
#CONFIG_BT_MESH_LOG_LEVEL_DBG=y
5051
#CONFIG_BT_MESH_SETTINGS_LOG_LEVEL_DBG=y

samples/boards/nordic/mesh/onoff-app/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ CONFIG_FLASH=y
99
CONFIG_FLASH_MAP=y
1010
CONFIG_NVS=y
1111
CONFIG_SETTINGS=y
12+
CONFIG_SECURE_STORAGE=y
13+
1214
CONFIG_BT_MESH_RPL_STORE_TIMEOUT=600
1315

1416
CONFIG_BOOT_BANNER=y

samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CONFIG_FLASH=y
77
CONFIG_FLASH_MAP=y
88
CONFIG_NVS=y
99
CONFIG_SETTINGS=y
10+
CONFIG_SECURE_STORAGE=y
1011

1112
CONFIG_BT_OBSERVER=y
1213
CONFIG_BT_BROADCASTER=y

samples/boards/phytec/reel_board/mesh_badge/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ CONFIG_FLASH=y
6666
CONFIG_FLASH_MAP=y
6767
CONFIG_NVS=y
6868
CONFIG_SETTINGS=y
69+
CONFIG_SECURE_STORAGE=y
6970
CONFIG_CBPRINTF_FP_SUPPORT=y

0 commit comments

Comments
 (0)