2021-12-23 07:27:19 +08:00
|
|
|
# Copyright (c) 2022, Commonwealth Scientific and Industrial Research
|
|
|
|
# Organisation (CSIRO) ABN 41 687 119 230.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config ENTROPY_BT_HCI
|
|
|
|
bool "Bluetooth HCI RNG driver"
|
2022-07-22 14:40:12 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ZEPHYR_BT_HCI_ENTROPY_ENABLED
|
2022-04-25 20:42:09 +08:00
|
|
|
depends on BT_HCI_HOST
|
2021-12-23 07:27:19 +08:00
|
|
|
select ENTROPY_HAS_DRIVER
|
|
|
|
help
|
|
|
|
Enable Random Number Generator from a Bluetooth HCI device.
|
|
|
|
|
|
|
|
# Don't use use Bluetooth HCI as a random source since it will be slow.
|
|
|
|
# Instead, use the software implemented xoshiro RNG.
|
|
|
|
choice RNG_GENERATOR_CHOICE
|
|
|
|
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_BT_HCI
|
|
|
|
endchoice
|