aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-25 11:51:21 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2016-01-26 09:27:31 -0500
commit578c60fbeb913e0f2aa49f37a04d475b615c8a8d (patch)
tree3289870b26d44107a4a320914f996aeea4b53910 /crypto
parentcbe09bd51bf23b42c3a94c5fb6815e1397c5fc3f (diff)
crypto: ghash,poly1305 - select CRYPTO_HASH where needed
The ghash and poly1305 hash implementations can be enabled when CONFIG_CRYPTO_HASH is turned off, causing a link error: crypto/built-in.o: In function `ghash_mod_init': (.init.text+0xd0): undefined reference to `crypto_register_shash' crypto/built-in.o: In function `ghash_mod_exit': (.exit.text+0xb4): undefined reference to `crypto_unregister_shash' crypto/built-in.o: In function `poly1305_mod_init': (.init.text+0xb4): undefined reference to `crypto_register_shash' crypto/built-in.o: In function `poly1305_mod_exit': (.exit.text+0x98): undefined reference to `crypto_unregister_shash' This adds an explicit 'select', like all other hashes have it. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 7240821137fd..3be07ad1d80d 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -472,11 +472,13 @@ config CRYPTO_CRCT10DIF_PCLMUL
472config CRYPTO_GHASH 472config CRYPTO_GHASH
473 tristate "GHASH digest algorithm" 473 tristate "GHASH digest algorithm"
474 select CRYPTO_GF128MUL 474 select CRYPTO_GF128MUL
475 select CRYPTO_HASH
475 help 476 help
476 GHASH is message digest algorithm for GCM (Galois/Counter Mode). 477 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
477 478
478config CRYPTO_POLY1305 479config CRYPTO_POLY1305
479 tristate "Poly1305 authenticator algorithm" 480 tristate "Poly1305 authenticator algorithm"
481 select CRYPTO_HASH
480 help 482 help
481 Poly1305 authenticator algorithm, RFC7539. 483 Poly1305 authenticator algorithm, RFC7539.
482 484