|
Message-ID: <CAHmME9oKYuOR-5cWF94yv41hfXArWUWyGM3wRtY8NyQPY=5J=w@mail.gmail.com> Date: Thu, 8 Jun 2017 19:34:01 +0200 From: "Jason A. Donenfeld" <Jason@...c4.com> To: Marcel Holtmann <marcel@...tmann.org> Cc: "Theodore Ts'o" <tytso@....edu>, Linux Crypto Mailing List <linux-crypto@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>, kernel-hardening@...ts.openwall.com, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, "David S. Miller" <davem@...emloft.net>, Eric Biggers <ebiggers3@...il.com>, "Gustavo F. Padovan" <gustavo@...ovan.org>, Johan Hedberg <johan.hedberg@...il.com> Subject: Re: [PATCH v4 12/13] bluetooth/smp: ensure RNG is properly seeded before ECDH use On Thu, Jun 8, 2017 at 7:05 PM, Marcel Holtmann <marcel@...tmann.org> 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 capable controllers since for BR/EDR only controllers this is not needed. For A2MP I need to check that we need the random numbers seeded there. However this hidden behind the high speed feature. Okay so it sounds like certain controllers will use this and certain won't, and so it might be slightly complicated to follow the mouse through the tube ideally. In that case, I'd recommend continuing with this current patchset, which just adds the wait (which is a no-op if it's already seeded) close to the actual call sites. Can you review that patch and give your Signed-off-by if it looks good? Jason
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.