Re: [PATCH v4 12/13] bluetooth/smp: ensure RNG is properly seeded before ECDH use

From: Jason A. Donenfeld
Date: Thu Jun 08 2017 - 08:03:37 EST


On Thu, Jun 8, 2017 at 7:04 AM, Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote:
>> Do we need to do all of this? Bluetooth folks, is it fair to assume
>> that hci_power_on() has to be called before any bluetooth functions
>> can be done? If so, adding a wait_for_random_bytes() in
>> hci_power_on() might be all that is necessary.

Maybe, but that could hassle bluetooth users who don't want to use any
of the fancy bluetooth crypto and don't want to bother waiting for
their RNG to initialize.