Skip to content

Commit

Permalink
crypto: rmd320 - remove RIPE-MD 320 hash algorithm
Browse files Browse the repository at this point in the history
RIPE-MD 320 is never referenced anywhere in the kernel, and unlikely
to be depended upon by userspace via AF_ALG. So let's remove it

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
ardbiesheuvel authored and herbertx committed Jan 29, 2021
1 parent c15d416 commit 93f6420
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 494 deletions.
12 changes: 0 additions & 12 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -834,18 +834,6 @@ config CRYPTO_RMD160
Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
See <https://homes.esat.kuleuven.be/~bosselae/ripemd160.html>

config CRYPTO_RMD320
tristate "RIPEMD-320 digest algorithm"
select CRYPTO_HASH
help
RIPEMD-320 is an optional extension of RIPEMD-160 with a
320 bit hash. It is intended for applications that require
longer hash-results, without needing a larger security level
(than RIPEMD-160).

Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
See <https://homes.esat.kuleuven.be/~bosselae/ripemd160.html>

config CRYPTO_SHA1
tristate "SHA1 digest algorithm"
select CRYPTO_HASH
Expand Down
8 changes: 0 additions & 8 deletions crypto/ripemd.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,12 @@
#define RMD160_DIGEST_SIZE 20
#define RMD160_BLOCK_SIZE 64

#define RMD320_DIGEST_SIZE 40
#define RMD320_BLOCK_SIZE 64

/* initial values */
#define RMD_H0 0x67452301UL
#define RMD_H1 0xefcdab89UL
#define RMD_H2 0x98badcfeUL
#define RMD_H3 0x10325476UL
#define RMD_H4 0xc3d2e1f0UL
#define RMD_H5 0x76543210UL
#define RMD_H6 0xfedcba98UL
#define RMD_H7 0x89abcdefUL
#define RMD_H8 0x01234567UL
#define RMD_H9 0x3c2d1e0fUL

/* constants */
#define RMD_K1 0x00000000UL
Expand Down
Loading

0 comments on commit 93f6420

Please sign in to comment.