Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/releases/migration-guide-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ Bluetooth HCI
* The deprecated ``ipm`` value was removed from ``bt-hci-bus`` devicetree property.
``ipc`` should be used instead.

Bluetooth Mesh
==============

* Kconfigs ``CONFIG_BT_MESH_USES_MBEDTLS_PSA`` and ``CONFIG_BT_MESH_USES_TFM_PSA`` have
been removed. The selection of the PSA Crypto provider is now automatically controlled
by Kconfig :kconfig:option:`CONFIG_PSA_CRYPTO`.

Ethernet
========

Expand Down
28 changes: 6 additions & 22 deletions subsys/bluetooth/mesh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1507,17 +1507,10 @@ config BT_MESH_SECURE_STORAGE
bool
depends on SECURE_STORAGE

choice BT_MESH_CRYPTO_LIB
prompt "Crypto library:"
default BT_MESH_USES_TFM_PSA if BUILD_WITH_TFM
default BT_MESH_USES_MBEDTLS_PSA
help
Crypto library selection for mesh security.

config BT_MESH_USES_MBEDTLS_PSA
bool "mbed TLS PSA"
select MBEDTLS
select MBEDTLS_PSA_CRYPTO_C
config BT_MESH_CRYPTO_LIB
bool
default y
select PSA_CRYPTO
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
Expand All @@ -1532,18 +1525,9 @@ config BT_MESH_USES_MBEDTLS_PSA
select PSA_WANT_ALG_ECDH
select PSA_WANT_ECC_SECP_R1_256
select BT_MESH_SECURE_STORAGE if BT_SETTINGS
imply MBEDTLS_AES_ROM_TABLES
imply MBEDTLS_AES_ROM_TABLES if PSA_CRYPTO_PROVIDER_MBEDTLS
help
Use Mbed TLS as PSA Crypto API provider.

config BT_MESH_USES_TFM_PSA
bool "TF-M PSA"
depends on BUILD_WITH_TFM
help
Use TF-M as PSA Crypto API provider. This is only possible on platforms
that support TF-M.

endchoice
Crypto library support for mesh security.

menu "Beacons"

Expand Down
2 changes: 1 addition & 1 deletion tests/bluetooth/mesh/brg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ target_compile_options(app
-DCONFIG_BT_SETTINGS
-DCONFIG_BT_MESH_BRG_CFG_SRV
-DCONFIG_BT_MESH_BRG_TABLE_ITEMS_MAX=16
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA)
-DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS)
2 changes: 1 addition & 1 deletion tests/bluetooth/mesh/delayable_msg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ target_compile_options(app
-DCONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_COUNT=4
-DCONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CHUNK_SIZE=20
-DCONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CHUNK_COUNT=20
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA)
-DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS)
2 changes: 1 addition & 1 deletion tests/bluetooth/mesh/rpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ target_compile_options(app
-DCONFIG_BT_MESH_CRPL=10
-DCONFIG_BT_MESH_RPL_STORE_TIMEOUT=1
-DCONFIG_BT_SETTINGS
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA)
-DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS)
2 changes: 1 addition & 1 deletion tests/bsim/bluetooth/mesh/src/mesh_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void bt_mesh_device_setup(const struct bt_mesh_prov *prov, const struct bt_mesh_

if (IS_ENABLED(CONFIG_BT_SETTINGS)) {
LOG_INF("Loading stored settings");
if (IS_ENABLED(CONFIG_BT_MESH_USES_MBEDTLS_PSA)) {
if (IS_ENABLED(CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS)) {
settings_load_subtree("itsemul");
}
settings_load_subtree("bt");
Expand Down
Loading