]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/hpre - Use crypto_stdrng_get_bytes()
authorEric Biggers <ebiggers@kernel.org>
Thu, 26 Mar 2026 00:15:01 +0000 (17:15 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Apr 2026 00:56:12 +0000 (08:56 +0800)
commitc30e1bbc9549b39c33f61310302eb8ccb98c7de4
tree87787914b297991babec61d7354b08347ab871ee
parentc7373a6ba57e13999af590703b63071e4f13d652
crypto: hisilicon/hpre - Use crypto_stdrng_get_bytes()

Replace the sequence of crypto_get_default_rng(),
crypto_rng_get_bytes(), and crypto_put_default_rng() with the equivalent
helper function crypto_stdrng_get_bytes().

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