lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aSErkZDtpzg6OcHw@gondor.apana.org.au>
Date: Sat, 22 Nov 2025 11:18:41 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Eric Biggers <ebiggers@...nel.org>
Cc: linux-crypto@...r.kernel.org, "Jason A . Donenfeld" <Jason@...c4.com>,
	linux-kernel@...r.kernel.org, Haotian Zhang <vulab@...as.ac.cn>,
	Neil Horman <nhorman@...driver.com>
Subject: Re: [PATCH] crypto: ansi_cprng - Remove unused ansi_cprng algorithm

On Thu, Nov 13, 2025 at 06:57:08PM -0800, Eric Biggers wrote:
> Remove ansi_cprng, since it's obsolete and unused, as confirmed at
> https://lore.kernel.org/r/aQxpnckYMgAAOLpZ@gondor.apana.org.au/
> 
> This was originally added in 2008, apparently as a FIPS approved random
> number generator.  Whether this has ever belonged upstream is
> questionable.  Either way, ansi_cprng is no longer usable for this
> purpose, since it's been superseded by the more modern algorithms in
> crypto/drbg.c, and FIPS itself no longer allows it.  (NIST SP 800-131A
> Rev 1 (2015) says that RNGs based on ANSI X9.31 will be disallowed after
> 2015.  NIST SP 800-131A Rev 2 (2019) confirms they are now disallowed.)
> 
> Therefore, there is no reason to keep it around.
> 
> Suggested-by: Herbert Xu <herbert@...dor.apana.org.au>
> Cc: Haotian Zhang <vulab@...as.ac.cn>
> Cc: Neil Horman <nhorman@...driver.com>
> Signed-off-by: Eric Biggers <ebiggers@...nel.org>
> ---
> 
> This patch is targeting cryptodev/master
> 
>  Documentation/crypto/userspace-if.rst       |   7 +-
>  MAINTAINERS                                 |   1 -
>  arch/arm/configs/axm55xx_defconfig          |   1 -
>  arch/arm/configs/clps711x_defconfig         |   1 -
>  arch/arm/configs/dove_defconfig             |   1 -
>  arch/arm/configs/ep93xx_defconfig           |   1 -
>  arch/arm/configs/jornada720_defconfig       |   1 -
>  arch/arm/configs/keystone_defconfig         |   1 -
>  arch/arm/configs/lpc32xx_defconfig          |   1 -
>  arch/arm/configs/mmp2_defconfig             |   1 -
>  arch/arm/configs/mv78xx0_defconfig          |   1 -
>  arch/arm/configs/omap1_defconfig            |   1 -
>  arch/arm/configs/orion5x_defconfig          |   1 -
>  arch/arm/configs/pxa168_defconfig           |   1 -
>  arch/arm/configs/pxa3xx_defconfig           |   1 -
>  arch/arm/configs/pxa910_defconfig           |   1 -
>  arch/arm/configs/spitz_defconfig            |   1 -
>  arch/arm64/configs/defconfig                |   1 -
>  arch/hexagon/configs/comet_defconfig        |   1 -
>  arch/m68k/configs/amcore_defconfig          |   1 -
>  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/stmark2_defconfig         |   1 -
>  arch/m68k/configs/sun3_defconfig            |   1 -
>  arch/m68k/configs/sun3x_defconfig           |   1 -
>  arch/mips/configs/decstation_64_defconfig   |   1 -
>  arch/mips/configs/decstation_defconfig      |   1 -
>  arch/mips/configs/decstation_r4k_defconfig  |   1 -
>  arch/s390/configs/debug_defconfig           |   1 -
>  arch/s390/configs/defconfig                 |   1 -
>  arch/sh/configs/ap325rxa_defconfig          |   1 -
>  arch/sh/configs/apsh4a3a_defconfig          |   1 -
>  arch/sh/configs/apsh4ad0a_defconfig         |   1 -
>  arch/sh/configs/dreamcast_defconfig         |   1 -
>  arch/sh/configs/ecovec24_defconfig          |   1 -
>  arch/sh/configs/edosk7760_defconfig         |   1 -
>  arch/sh/configs/espt_defconfig              |   1 -
>  arch/sh/configs/hp6xx_defconfig             |   1 -
>  arch/sh/configs/landisk_defconfig           |   1 -
>  arch/sh/configs/lboxre2_defconfig           |   1 -
>  arch/sh/configs/migor_defconfig             |   1 -
>  arch/sh/configs/r7780mp_defconfig           |   1 -
>  arch/sh/configs/r7785rp_defconfig           |   1 -
>  arch/sh/configs/rts7751r2d1_defconfig       |   1 -
>  arch/sh/configs/rts7751r2dplus_defconfig    |   1 -
>  arch/sh/configs/sdk7780_defconfig           |   1 -
>  arch/sh/configs/sdk7786_defconfig           |   1 -
>  arch/sh/configs/se7206_defconfig            |   1 -
>  arch/sh/configs/se7343_defconfig            |   1 -
>  arch/sh/configs/se7705_defconfig            |   1 -
>  arch/sh/configs/se7712_defconfig            |   1 -
>  arch/sh/configs/se7721_defconfig            |   1 -
>  arch/sh/configs/se7722_defconfig            |   1 -
>  arch/sh/configs/se7724_defconfig            |   1 -
>  arch/sh/configs/se7750_defconfig            |   1 -
>  arch/sh/configs/se7751_defconfig            |   1 -
>  arch/sh/configs/se7780_defconfig            |   1 -
>  arch/sh/configs/sh03_defconfig              |   1 -
>  arch/sh/configs/sh2007_defconfig            |   1 -
>  arch/sh/configs/sh7710voipgw_defconfig      |   1 -
>  arch/sh/configs/sh7757lcr_defconfig         |   1 -
>  arch/sh/configs/sh7763rdp_defconfig         |   1 -
>  arch/sh/configs/sh7785lcr_32bit_defconfig   |   1 -
>  arch/sh/configs/sh7785lcr_defconfig         |   1 -
>  arch/sh/configs/shmin_defconfig             |   1 -
>  arch/sh/configs/shx3_defconfig              |   1 -
>  arch/sh/configs/titan_defconfig             |   1 -
>  arch/sh/configs/ul2_defconfig               |   1 -
>  arch/sh/configs/urquell_defconfig           |   1 -
>  arch/sparc/configs/sparc32_defconfig        |   1 -
>  arch/sparc/configs/sparc64_defconfig        |   1 -
>  arch/xtensa/configs/audio_kc705_defconfig   |   1 -
>  arch/xtensa/configs/generic_kc705_defconfig |   1 -
>  arch/xtensa/configs/iss_defconfig           |   1 -
>  arch/xtensa/configs/nommu_kc705_defconfig   |   1 -
>  arch/xtensa/configs/smp_lx200_defconfig     |   1 -
>  arch/xtensa/configs/virt_defconfig          |   1 -
>  arch/xtensa/configs/xip_kc705_defconfig     |   1 -
>  crypto/Kconfig                              |  13 +-
>  crypto/Makefile                             |   1 -
>  crypto/ansi_cprng.c                         | 474 --------------------
>  crypto/tcrypt.c                             |   4 -
>  crypto/testmgr.c                            |  97 ----
>  crypto/testmgr.h                            | 106 -----
>  include/crypto/rng.h                        |  11 +-
>  93 files changed, 9 insertions(+), 789 deletions(-)
>  delete mode 100644 crypto/ansi_cprng.c

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ