Skip to content

Commit

Permalink
crypto: rmd128 - remove RIPE-MD 128 hash algorithm
Browse files Browse the repository at this point in the history
RIPE-MD 128 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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ardbiesheuvel authored and herbertx committed Jan 29, 2021
1 parent c114cf7 commit b21b9a5
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 506 deletions.
13 changes: 0 additions & 13 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -817,19 +817,6 @@ config CRYPTO_MICHAEL_MIC
should not be used for other purposes because of the weakness
of the algorithm.

config CRYPTO_RMD128
tristate "RIPEMD-128 digest algorithm"
select CRYPTO_HASH
help
RIPEMD-128 (ISO/IEC 10118-3:2004).

RIPEMD-128 is a 128-bit cryptographic hash function. It should only
be used as a secure replacement for RIPEMD. For other use cases,
RIPEMD-160 should be used.

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

config CRYPTO_RMD160
tristate "RIPEMD-160 digest algorithm"
select CRYPTO_HASH
Expand Down
1 change: 0 additions & 1 deletion crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ obj-$(CONFIG_CRYPTO_XCBC) += xcbc.o
obj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o
obj-$(CONFIG_CRYPTO_MD4) += md4.o
obj-$(CONFIG_CRYPTO_MD5) += md5.o
obj-$(CONFIG_CRYPTO_RMD128) += rmd128.o
obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
obj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
obj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
Expand Down
3 changes: 0 additions & 3 deletions crypto/ripemd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#ifndef _CRYPTO_RMD_H
#define _CRYPTO_RMD_H

#define RMD128_DIGEST_SIZE 16
#define RMD128_BLOCK_SIZE 64

#define RMD160_DIGEST_SIZE 20
#define RMD160_BLOCK_SIZE 64

Expand Down
323 changes: 0 additions & 323 deletions crypto/rmd128.c

This file was deleted.

Loading

0 comments on commit b21b9a5

Please sign in to comment.