Re: [PATCH v7] crypto: jitterentropy - Use SHA-3 library

From: Ard Biesheuvel

Date: Thu Feb 26 2026 - 09:21:57 EST




On Thu, 26 Feb 2026, at 02:00, Eric Biggers wrote:
> From: David Howells <dhowells@xxxxxxxxxx>
>
> Make the jitterentropy RNG use the SHA-3 library API instead of
> crypto_shash. This ends up being quite a bit simpler, as various
> dynamic allocations and error checks become unnecessary.
>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
> Co-developed-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>
> This is a cleaned-up and rebased version of
> https://lore.kernel.org/linux-crypto/20251017144311.817771-7-dhowells@xxxxxxxxxx/
> If there are no objections, I'll take this via libcrypto-next.
>
> crypto/Kconfig | 2 +-
> crypto/jitterentropy-kcapi.c | 114 +++++++++--------------------------
> crypto/jitterentropy.c | 25 ++++----
> crypto/jitterentropy.h | 19 +++---
> 4 files changed, 52 insertions(+), 108 deletions(-)
>

Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>