]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: rng - ensure that the RNG is ready before using
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 16 Jul 2017 17:22:06 +0000 (19:22 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2017 09:56:00 +0000 (17:56 +0800)
commit4361d9dfe44d293ae5ecd25452220c35a7a4d49b
treeb419a0bc96214cd9e896da300f380bb3ea013a3c
parentb98c0c1564235a8f73ca056eba078baf09396a06
crypto: rng - ensure that the RNG is ready before using

Otherwise, we might be seeding the RNG using bad randomness, which is
dangerous. The one use of this function from within the kernel -- not
from userspace -- is being removed (keys/big_key), so that call site
isn't relevant in assessing this.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rng.c