diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-08-17 16:24:33 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-22 14:57:35 +1000 |
commit | 3a4db3b2cce206ad17b4c80ed9f2f71eef23f9d9 (patch) | |
tree | 5ff4b84b76d25638d27645e58cd4c8ef770a18ab /crypto | |
parent | dc1ce1fd5002bbca4004e757b6ff857499fd90e7 (diff) | |
download | linux-crypto-3a4db3b2cce206ad17b4c80ed9f2f71eef23f9d9.tar.gz linux-crypto-3a4db3b2cce206ad17b4c80ed9f2f71eef23f9d9.zip |
crypto: sha256 - Make lib/crypto/sha256.c suitable for generic use
Before this commit lib/crypto/sha256.c has only been used in the s390 and
x86 purgatory code, make it suitable for generic use:
* Export interesting symbols
* Add -D__DISABLE_EXPORTS to CFLAGS_sha256.o for purgatory builds to
avoid the exports for the purgatory builds
* Add to lib/crypto/Makefile and crypto/Kconfig
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 42a17fe9..e96b321b 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -849,6 +849,9 @@ config CRYPTO_SHA1_PPC_SPE SHA-1 secure hash standard (DFIPS 180-4) implemented using powerpc SPE SIMD instruction set. +config CRYPTO_LIB_SHA256 + tristate + config CRYPTO_SHA256 tristate "SHA224 and SHA256 digest algorithm" select CRYPTO_HASH |