This protocol uses lots of complex cryptography that relies on securely
generated random numbers. Thus, it's important that the RNG is actually
seeded before use. Fortuantely, it appears we're always operating in
process context (there are many GFP_KERNEL allocations and other
sleeping operations),
On Tue, Jun 06, 2017 at 07:48:03PM +0200, Jason A. Donenfeld wrote:
> This protocol uses lots of complex cryptography that relies on securely
> generated random numbers. Thus, it's important that the RNG is actually
> seeded before use. Fortuantely, it appears we're always operating in
> process co
Hi Ted,
>> This protocol uses lots of complex cryptography that relies on securely
>> generated random numbers. Thus, it's important that the RNG is actually
>> seeded before use. Fortuantely, it appears we're always operating in
>> process context (there are many GFP_KERNEL allocations and other
On Thu, Jun 8, 2017 at 7:04 AM, Marcel Holtmann 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 n
Hello Marcel,
On Thu, Jun 8, 2017 at 7:04 AM, Marcel Holtmann wrote:
> yes, there are plenty of commands needed before a controller becomes usable.
That doesn't clearly address with precision what Ted was wondering.
Specifically, the inquiry is: can you confirm with certainty whether
or not all
Hi Jason,
>> yes, there are plenty of commands needed before a controller becomes usable.
>
> That doesn't clearly address with precision what Ted was wondering.
> Specifically, the inquiry is: can you confirm with certainty whether
> or not all calls to get_random_bytes() in the bluetooth direct
On Thu, Jun 8, 2017 at 7:05 PM, Marcel Holtmann wrote:
> on a powered down controller, you can not do any crypto. SMP is only during a
> connection and the RPAs are only generated when needed. So yes, doing this
> once in hci_power_on is plenty. However we might want to limit this to LE
> capab