]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: drbg - De-virtualize drbg_state_ops
authorEric Biggers <ebiggers@kernel.org>
Mon, 20 Apr 2026 06:34:03 +0000 (23:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:00 +0000 (16:10 +0800)
commitaaa891b7c71a493d8746d877cf4c02ecf261ecc4
treef591d482e2cc6196f6c6209aa749a78c1f585a8b
parentb9e081978ea4d21f006d40d6517421142f9fa479
crypto: drbg - De-virtualize drbg_state_ops

Now that there's only one set of state operations, use direct calls to
those operations.

No change in behavior.  In particular, drbg_alloc_state() doesn't change
behavior, because the only remaining drbg_core uses HMAC_DRBG.
drbg_uninstantiate() doesn't change behavior, because a NULL d_ops
implied NULL priv_data which makes a drbg_fini_hash_kernel() a no-op.

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