crypto: sha256_generic - Switch to the generic lib/crypto/sha256.c lib code
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Aug 2019 14:24:35 +0000 (16:24 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:35 +0000 (14:57 +1000)
commit08c327f63f355fce190ac3e1ac62e19d2c5f004d
tree686b48f1dc19c0fae0433a644a339e2603eeb287
parent7d2f5b0c43e0bb346fbf78daefd68cd0bfc56ca3
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>
crypto/Kconfig
crypto/sha256_generic.c