Skip to content

Commit c7dcb04

Browse files
Eric Biggersherbertx
authored andcommitted
crypto: ansi_cprng - Remove unused ansi_cprng algorithm
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@gondor.apana.org.au> Cc: Haotian Zhang <vulab@iscas.ac.cn> Cc: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 79492d5 commit c7dcb04

93 files changed

Lines changed: 9 additions & 789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/crypto/userspace-if.rst

Lines changed: 3 additions & 4 deletions

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6605,7 +6605,6 @@ CRYPTOGRAPHIC RANDOM NUMBER GENERATOR
66056605
M: Neil Horman <nhorman@tuxdriver.com>
66066606
L: linux-crypto@vger.kernel.org
66076607
S: Maintained
6608-
F: crypto/ansi_cprng.c
66096608
F: crypto/rng.c
66106609

66116610
CS3308 MEDIA DRIVER

arch/arm/configs/axm55xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,3 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=60
233233
CONFIG_DEBUG_USER=y
234234
CONFIG_CRYPTO_GCM=y
235235
CONFIG_CRYPTO_SHA256=y
236-
# CONFIG_CRYPTO_ANSI_CPRNG is not set

arch/arm/configs/clps711x_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,4 @@ CONFIG_MINIX_FS=y
7575
CONFIG_DEBUG_USER=y
7676
CONFIG_DEBUG_LL=y
7777
CONFIG_EARLY_PRINTK=y
78-
# CONFIG_CRYPTO_ANSI_CPRNG is not set
7978
# CONFIG_CRYPTO_HW is not set

arch/arm/configs/dove_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ CONFIG_CRYPTO_SHA256=y
126126
CONFIG_CRYPTO_SHA512=y
127127
CONFIG_CRYPTO_DEFLATE=y
128128
CONFIG_CRYPTO_LZO=y
129-
# CONFIG_CRYPTO_ANSI_CPRNG is not set
130129
CONFIG_CRYPTO_DEV_MARVELL_CESA=y
131130
CONFIG_PRINTK_TIME=y
132131
# CONFIG_DEBUG_BUGVERBOSE is not set

arch/arm/configs/ep93xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,3 @@ CONFIG_DEBUG_SPINLOCK=y
119119
CONFIG_DEBUG_MUTEXES=y
120120
CONFIG_DEBUG_USER=y
121121
CONFIG_DEBUG_LL=y
122-
# CONFIG_CRYPTO_ANSI_CPRNG is not set

arch/arm/configs/jornada720_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@ CONFIG_NLS_UTF8=m
9292
CONFIG_DEBUG_KERNEL=y
9393
# CONFIG_FTRACE is not set
9494
CONFIG_DEBUG_LL=y
95-
# CONFIG_CRYPTO_ANSI_CPRNG is not set

arch/arm/configs/keystone_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ CONFIG_CRYPTO_DES=y
228228
CONFIG_CRYPTO_CBC=y
229229
CONFIG_CRYPTO_CTR=y
230230
CONFIG_CRYPTO_XCBC=y
231-
CONFIG_CRYPTO_ANSI_CPRNG=y
232231
CONFIG_CRYPTO_USER_API_HASH=y
233232
CONFIG_CRYPTO_USER_API_SKCIPHER=y
234233
CONFIG_DMA_CMA=y

arch/arm/configs/lpc32xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ CONFIG_NLS_CODEPAGE_437=y
177177
CONFIG_NLS_ASCII=y
178178
CONFIG_NLS_ISO8859_1=y
179179
CONFIG_NLS_UTF8=y
180-
CONFIG_CRYPTO_ANSI_CPRNG=y
181180
# CONFIG_CRYPTO_HW is not set
182181
CONFIG_PRINTK_TIME=y
183182
CONFIG_DYNAMIC_DEBUG=y

arch/arm/configs/mmp2_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,3 @@ CONFIG_DEBUG_USER=y
7878
CONFIG_DEBUG_LL=y
7979
CONFIG_DEBUG_MMP_UART3=y
8080
CONFIG_EARLY_PRINTK=y
81-
# CONFIG_CRYPTO_ANSI_CPRNG is not set

0 commit comments

Comments
 (0)