]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: drbg - Install separate seed functions for pr and nopr
authorEric Biggers <ebiggers@kernel.org>
Mon, 20 Apr 2026 06:34:08 +0000 (23:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:00 +0000 (16:10 +0800)
commit7f0ef29864ebf2ab5fea04523cc0bd8f1c7d1ccd
treeb5f5433c863cdfb53254ae6b9f944fe43fa060a5
parente8806e2e97dc769e03c1fc50ed32622dad476dfb
crypto: drbg - Install separate seed functions for pr and nopr

Set rng_alg::seed to different functions for the prediction-resistant
and non-prediction-resistant algorithms, so that the function does not
need to parse the algorithm name to figure out which algorithm it is.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c