]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: drbg - Separate "reseed" case in drbg_kcapi_seed()
authorEric Biggers <ebiggers@kernel.org>
Mon, 20 Apr 2026 06:34:15 +0000 (23:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:01 +0000 (16:10 +0800)
commitad8883374f34809f04d6839b9e7efe0afa5e92cd
treec1077677c72345e18c2c8586b127aef1e2f4367e
parent810ba022870bfdf7b7ac0e04db98b2891e80f59e
crypto: drbg - Separate "reseed" case in drbg_kcapi_seed()

Clearly separate the code for the "reseed" and "instantiate" cases,
since what they need to do is quite different.

Note that the mutex guard makes the mutex start being held during the
call to drbg_uninstantiate(), which is fine.

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