diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2021-12-31 09:26:08 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-01-07 00:25:25 +0100 |
commit | 96562f286884e2db89c74215b199a1084b5fb7f7 (patch) | |
tree | 7f083a6e760685b8e5beeda8c00e130891e9f937 /kernel/delayacct.c | |
parent | 7b87324112df2e1f9b395217361626362dcfb9fb (diff) | |
download | linux-96562f286884e2db89c74215b199a1084b5fb7f7.tar.bz2 |
random: early initialization of ChaCha constants
Previously, the ChaCha constants for the primary pool were only
initialized in crng_initialize_primary(), called by rand_initialize().
However, some randomness is actually extracted from the primary pool
beforehand, e.g. by kmem_cache_create(). Therefore, statically
initialize the ChaCha constants for the primary pool.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <linux-crypto@vger.kernel.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'kernel/delayacct.c')
0 files changed, 0 insertions, 0 deletions