Skip to content
Commit 154f5c02 authored by Lingao Meng's avatar Lingao Meng Committed by Carles Cufí
Browse files

Bluetooth: host: crypto: Add a config to select how rand is generated



Considering that in most scenarios, bt_rand will not be called
frequently, but the current implementation of tinycrypt will
occupy more than 300 bytes of RAM space. Its existence is to
optimize the frequent call of bt_rand.

Therefore, it is considered to put it into a config
(`BT_HOST_CRYPTO_RANDOM`), when this config has been selected,
will use tinycrypt library for random. Otherwise will call bt random
hci command.

Signed-off-by: default avatarLingao Meng <menglingao@xiaomi.com>
parent 989b71b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment