diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-08-17 10:24:35 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-22 00:57:35 -0400 |
commit | 08c327f63f355fce190ac3e1ac62e19d2c5f004d (patch) | |
tree | 686b48f1dc19c0fae0433a644a339e2603eeb287 /crypto/Kconfig | |
parent | 7d2f5b0c43e0bb346fbf78daefd68cd0bfc56ca3 (diff) |
crypto: sha256_generic - Switch to the generic lib/crypto/sha256.c lib code
Drop the duplicate generic sha256 (and sha224) implementation from
crypto/sha256_generic.c and use the implementation from
lib/crypto/sha256.c instead.
"diff -u lib/crypto/sha256.c sha256_generic.c" shows that the core
sha256_transform function from both implementations is identical and
the other code is functionally identical too.
Suggested-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index e96b321b51af..ad86463de715 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -855,6 +855,7 @@ config CRYPTO_LIB_SHA256 | |||
855 | config CRYPTO_SHA256 | 855 | config CRYPTO_SHA256 |
856 | tristate "SHA224 and SHA256 digest algorithm" | 856 | tristate "SHA224 and SHA256 digest algorithm" |
857 | select CRYPTO_HASH | 857 | select CRYPTO_HASH |
858 | select CRYPTO_LIB_SHA256 | ||
858 | help | 859 | help |
859 | SHA256 secure hash standard (DFIPS 180-2). | 860 | SHA256 secure hash standard (DFIPS 180-2). |
860 | 861 | ||