Skip to content

Commit 4982231

Browse files
valeriosettifrkv
authored andcommitted
Bluetooth: Host: add PSA_WANT_xxx_IMPORT/EXPORT to BT_ECC
The BT Host module also uses import/export PSA functions alongside the generate one, so these PSA_WANT should be added as well. Previously it happened to work only because Mbed TLS is enabling IMPORT/EXPORT internally whenever GENERATE/DERIVE is set. However the same might not be true for all PSA Crypto providers. Signed-off-by: Valerio Setti <[email protected]>
1 parent 41e7acb commit 4982231

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,8 @@ config BT_ECC
998998
select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM
999999
select PSA_WANT_ALG_ECDH
10001000
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
1001+
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
1002+
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
10011003
select PSA_WANT_ECC_SECP_R1_256
10021004
imply MBEDTLS_PSA_P256M_DRIVER_ENABLED if MBEDTLS_PSA_CRYPTO_C
10031005
select BT_LONG_WQ

0 commit comments

Comments
 (0)