Skip to content

Commit 1f35d47

Browse files
author
Johan Hedberg
committed
Bluetooth: Don't select TinyCrypt RNG for combined builds
For combined builds with Controller+Host the Controller's HW RNG is used instead of TinyCrypts PRNG. Change-Id: I4dbe85e547c057cf57ae0934b10866f2bb9f610d Signed-off-by: Johan Hedberg <[email protected]>
1 parent bfc0c35 commit 1f35d47

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ config BLUETOOTH_HCI_HOST
4040
bool
4141
default y
4242
depends on !BLUETOOTH_HCI_RAW
43-
select TINYCRYPT
44-
select TINYCRYPT_SHA256
45-
select TINYCRYPT_SHA256_HMAC
46-
select TINYCRYPT_SHA256_HMAC_PRNG
43+
select TINYCRYPT if !BLUETOOTH_CONTROLLER
44+
select TINYCRYPT_SHA256 if !BLUETOOTH_CONTROLLER
45+
select TINYCRYPT_SHA256_HMAC if !BLUETOOTH_CONTROLLER
46+
select TINYCRYPT_SHA256_HMAC_PRNG if !BLUETOOTH_CONTROLLER
4747

4848
config BLUETOOTH_RECV_IS_RX_THREAD
4949
# Virtual option set by the HCI driver to indicate that there's
@@ -176,6 +176,7 @@ config BLUETOOTH_ATT_PREPARE_COUNT
176176

177177
config BLUETOOTH_SMP
178178
bool "Security Manager Protocol support"
179+
select TINYCRYPT
179180
select TINYCRYPT_AES
180181
select TINYCRYPT_AES_CMAC
181182
help

0 commit comments

Comments
 (0)