Re: [PATCH 13/38] crypto: drbg - Remove support for HASH_DRBG
From: Geert Uytterhoeven
Date: Tue Apr 21 2026 - 03:33:28 EST
On Mon, 20 Apr 2026 at 19:29, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> Remove the support for HASH_DRBG. It's likely unused code, seeing as
> HMAC_DRBG is always enabled and prioritized over it unless
> NETLINK_CRYPTO is used to change the algorithm priorities.
>
> There's also no compelling reason to support more than one of
> [HMAC_DRBG, HASH_DRBG, CTR_DRBG]. By definition, callers cannot tell
> any difference in their outputs. And all are FIPS-certifiable, which is
> the only point of the kernel's NIST DRBGs anyway.
>
> Switching to HASH_DRBG doesn't seem all that compelling, either. For
> one, it's more complex than HMAC_DRBG.
>
> Thus, let's just drop HASH_DRBG support and focus on HMAC_DRBG.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> arch/m68k/configs/amiga_defconfig | 1 -
> arch/m68k/configs/apollo_defconfig | 1 -
> arch/m68k/configs/atari_defconfig | 1 -
> arch/m68k/configs/bvme6000_defconfig | 1 -
> arch/m68k/configs/hp300_defconfig | 1 -
> arch/m68k/configs/mac_defconfig | 1 -
> arch/m68k/configs/multi_defconfig | 1 -
> arch/m68k/configs/mvme147_defconfig | 1 -
> arch/m68k/configs/mvme16x_defconfig | 1 -
> arch/m68k/configs/q40_defconfig | 1 -
> arch/m68k/configs/sun3_defconfig | 1 -
> arch/m68k/configs/sun3x_defconfig | 1 -
Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> # m68k
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds