]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: drbg - Simplify algorithm registration
authorEric Biggers <ebiggers@kernel.org>
Mon, 20 Apr 2026 06:34:02 +0000 (23:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:00 +0000 (16:10 +0800)
commitb9e081978ea4d21f006d40d6517421142f9fa479
tree011bd97c885965373fcf030e05d371db53fbe5cd
parent89cfd38c788e9d8a2d05d1487c4513043e6d46a2
crypto: drbg - Simplify algorithm registration

Now that "drbg_pr_hmac_sha512" and "drbg_nopr_hmac_sha512" are the only
crypto_rng algorithms left in crypto/drbg.c, simplify the algorithm
registration logic to register these more directly without relying on
the drbg_cores[] array (which will be removed).

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