Skip to content

Commit 44f27c7

Browse files
valeriosettianangl
authored andcommitted
[nrf fromtree] Bluetooth: make MBEDTLS_AES_ROM_TABLES implied not selected
MBEDTLS_AES_ROM_TABLES let Mbed TLS use precomputed AES tables instead of generating them at runtime and placing in RAM. It clearly helps reducing the RAM footprint, but at the same time it increases the ROM one. In order to let the final user decide which kind of optimization they prefer, we change the "select" statement with "imply". Signed-off-by: Valerio Setti <[email protected]> (cherry picked from commit aaf463c)
1 parent 567716e commit 44f27c7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

subsys/bluetooth/crypto/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ config BT_CRYPTO
77
select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM
88
select PSA_WANT_KEY_TYPE_AES
99
select PSA_WANT_ALG_CMAC
10-
select MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
10+
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
1111
help
1212
This option enables the Bluetooth Cryptographic Toolbox.

subsys/bluetooth/host/Kconfig.gatt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ config BT_GATT_CACHING
135135
depends on PSA_CRYPTO_CLIENT
136136
select PSA_WANT_KEY_TYPE_AES
137137
select PSA_WANT_ALG_CMAC
138-
select MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
138+
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
139139
help
140140
This option enables support for GATT Caching. When enabled the stack
141141
will register Client Supported Features and Database Hash

subsys/bluetooth/mesh/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ config BT_MESH_USES_MBEDTLS_PSA
14991499
select PSA_WANT_ALG_CMAC
15001500
select PSA_WANT_ALG_ECB_NO_PADDING
15011501
select PSA_WANT_KEY_TYPE_AES
1502-
select MBEDTLS_AES_ROM_TABLES
1502+
imply MBEDTLS_AES_ROM_TABLES
15031503
select PSA_WANT_ALG_CCM
15041504
select PSA_WANT_KEY_TYPE_HMAC
15051505
select PSA_WANT_ALG_HMAC

0 commit comments

Comments
 (0)