Bluetooth: Kconfig: Add option for enabling TinyCrypt

Add a single option for enabling use of TinyCrypt library for
crypto. This option selects all required TinyCrypt options
depending on BT features enabled. Thanks to this applications
only need to select single option instead of set of required
TinyCrypt features.

Change-Id: I2862e9ad3e204635f2ed3199433982bcfb7112f6
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-02-09 11:17:02 +01:00 committed by Anas Nashif
commit eccec2a5ac
5 changed files with 16 additions and 11 deletions

View file

@ -35,6 +35,18 @@ config BLUETOOTH_LE
(CONFIG_BLUETOOTH) is enabled.
if BLUETOOTH_LE
config BLUETOOTH_TINYCRYPT
bool "Use TinyCrypt library"
default n
select TINYCRYPT
select TINYCRYPT_AES if BLUETOOTH_SMP
select TINYCRYPT_SHA256
select TINYCRYPT_SHA256_HMAC
select TINYCRYPT_SHA256_HMAC_PRNG
help
"If this option is set TinyCrypt library is used for Bluetooth
cryptographic operations. If not set controller crypto is used"
config BLUETOOTH_HCI_CMD_COUNT
int "Number of HCI command buffers"
default 2