From ab013794a5efa9289d728253b0568a083738a3da Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 11 Feb 2016 18:27:06 +0100 Subject: [PATCH] Bluetooth: Kconfig: Move TinyCrypt ECDH under SMP This is used only for LE SC. Change-Id: I60e5ac391fec1cf1f8648f16021a2956072f2d50 Signed-off-by: Szymon Janc --- net/bluetooth/Kconfig | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index 63bcb46eced..fd48449565f 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig @@ -41,16 +41,6 @@ config BLUETOOTH_LE (CONFIG_BLUETOOTH) is enabled. if BLUETOOTH_LE -config BLUETOOTH_TINYCRYPT_ECC - bool "Use TinyCrypt library for ECDH" - default n - select TINYCRYPT_ECC_DH - help - If this option is set TinyCrypt library is also used for LE Secure - Connections elliptic curve Diffie-Hellman key agreement. If not set - controller crypto is used for ECDH and if controller doesn't support - required HCI commands LE Secure Connections support will be disabled. - config BLUETOOTH_HCI_CMD_COUNT int "Number of HCI command buffers" default 2 @@ -155,6 +145,17 @@ config BLUETOOTH_SMP_SC_ONLY for services that only require Security Mode 1 Level 1 (no security). Security Mode 1 Level 4 stands for authenticated LE Secure Connections pairing with encryption. Enabling this option disables legacy pairing. + +config BLUETOOTH_TINYCRYPT_ECC + bool "Use TinyCrypt library for LE SC ECDH" + default n + select TINYCRYPT_ECC_DH + help + If this option is set TinyCrypt library is also used for LE Secure + Connections elliptic curve Diffie-Hellman key agreement. If not set + controller crypto is used for ECDH and if controller doesn't support + required HCI commands LE Secure Connections support will be disabled. + endif # BLUETOOTH_SMP config BLUETOOTH_L2CAP_DYNAMIC_CHANNEL