Skip to content

Commit aaf463c

Browse files
valeriosettikartben
authored andcommitted
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 <vsetti@baylibre.com>
1 parent 6463d15 commit aaf463c

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
@@ -118,7 +118,7 @@ config BT_GATT_CACHING
118118
depends on PSA_CRYPTO_CLIENT
119119
select PSA_WANT_KEY_TYPE_AES
120120
select PSA_WANT_ALG_CMAC
121-
select MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
121+
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
122122
help
123123
This option enables support for GATT Caching. When enabled the stack
124124
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
@@ -1488,7 +1488,7 @@ config BT_MESH_USES_MBEDTLS_PSA
14881488
select PSA_WANT_ALG_CMAC
14891489
select PSA_WANT_ALG_ECB_NO_PADDING
14901490
select PSA_WANT_KEY_TYPE_AES
1491-
select MBEDTLS_AES_ROM_TABLES
1491+
imply MBEDTLS_AES_ROM_TABLES
14921492
select PSA_WANT_ALG_CCM
14931493
select PSA_WANT_KEY_TYPE_HMAC
14941494
select PSA_WANT_ALG_HMAC

0 commit comments

Comments
 (0)