Skip to content

Commit 5790de6

Browse files
valeriosettifabiobaltieri
authored andcommitted
Bluetooth: Host: use P256-M in ECC emulation
When BT_SEND_ECC_EMULATION and the platform uses Mbed TLS as PSA Crypto provider, we select the Cortex-M software optimized implementation of the secp256r1 curve algorithms. This is much faster than the standard support provided by Mbed TLS and it also reduces ROM footprint. Signed-off-by: Valerio Setti <[email protected]>
1 parent 2f583a8 commit 5790de6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ config BT_SEND_ECC_EMULATION
10061006
select PSA_WANT_ALG_ECDH
10071007
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
10081008
select PSA_WANT_ECC_SECP_R1_256
1009+
select MBEDTLS_PSA_P256M_DRIVER_ENABLED if MBEDTLS_PSA_CRYPTO_C
10091010
select BT_LONG_WQ
10101011
depends on BT_ECC && (BT_HCI_RAW || BT_HCI_HOST)
10111012
default y if BT_CTLR && !BT_CTLR_ECDH

0 commit comments

Comments
 (0)