diff options
author | Szymon Janc <ext.szymon.janc@tieto.com> | 2016-02-10 14:30:51 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@zephyrproject.org> | 2016-02-11 10:56:40 +0000 |
commit | 4318fc0e5b22cde7ba9e8b564dc3b597288190de (patch) | |
tree | 0eb38a6e36c762d9c9e3ce97bb1dc95a69bc7199 | |
parent | 754248aedc7322147eae06a49665a0995c7fb18a (diff) |
Bluetooth: Kconfig: Add TinyCrypt ECC config option
This enables use of ECC from TinyCrypt. Since ECC is heavy this option
is separated from general use of TinyCrypt in SMP code.
Change-Id: Ia550e4a5f89240c8e15d2b5acccc21993b44b471
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
-rw-r--r-- | net/bluetooth/Kconfig | 10 | ||||
-rw-r--r-- | samples/bluetooth/shell/prj_x86.conf | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index d118a355d..9abaf898d 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig @@ -47,6 +47,16 @@ config BLUETOOTH_TINYCRYPT "If this option is set TinyCrypt library is used for Bluetooth cryptographic operations. If not set controller crypto is used" +config BLUETOOTH_TINYCRYPT_ECC + bool "Use TinyCrypt library for ECDH" + default n + depends on BLUETOOTH_TINYCRYPT + 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. + config BLUETOOTH_HCI_CMD_COUNT int "Number of HCI command buffers" default 2 diff --git a/samples/bluetooth/shell/prj_x86.conf b/samples/bluetooth/shell/prj_x86.conf index 7baeb9f93..3f63d9f8c 100644 --- a/samples/bluetooth/shell/prj_x86.conf +++ b/samples/bluetooth/shell/prj_x86.conf @@ -11,4 +11,5 @@ CONFIG_BLUETOOTH_SIGNING=y CONFIG_BLUETOOTH_GATT_CLIENT=y CONFIG_BLUETOOTH_L2CAP_DYNAMIC_CHANNEL=y CONFIG_BLUETOOTH_TINYCRYPT=y +CONFIG_BLUETOOTH_TINYCRYPT_ECC=y CONFIG_CONSOLE_HANDLER_SHELL=y |