Skip to content

Commit 30c73cd

Browse files
PavelVPVnordic-piks
authored andcommitted
kconfig.nrf: Enable heap if BT_CRYPTO is enabled
The bt_crypto_aes_cmac function from bt_crypto library uses psa_import_key function which requires memory for importing keys. The memory is allocated in the heap, therefore MBEDTLS_ENABLE_HEAP should be enabled. This allows to build tests.bluetooth.bt_crypto.psa upstream tests. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 11e9726 commit 30c73cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kconfig.nrf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ config NRF_SECURITY_ENABLER
124124
imply NRF_SECURITY if BT_CRYPTO || BT_HOST_CRYPTO || BT_MESH_USES_MBEDTLS_PSA || BT_FAST_PAIR_CRYPTO_PSA
125125
imply ENTROPY_GENERATOR if BOARD_NATIVE_SIM || BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING
126126
imply PSA_WANT_GENERATE_RANDOM if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING
127-
imply MBEDTLS_ENABLE_HEAP if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING
127+
imply MBEDTLS_ENABLE_HEAP if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING || BT_CRYPTO
128128
depends on !SOC_NRF5340_CPUNET
129129

130130
if SOC_SERIES_BSIM_NRFXX && ENTROPY_GENERATOR

0 commit comments

Comments
 (0)