Skip to content

Commit 578c60f

Browse files
arndbherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent cbe09bd commit 578c60f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crypto/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,13 @@ config CRYPTO_CRCT10DIF_PCLMUL
472472
config CRYPTO_GHASH
473473
tristate "GHASH digest algorithm"
474474
select CRYPTO_GF128MUL
475+
select CRYPTO_HASH
475476
help
476477
GHASH is message digest algorithm for GCM (Galois/Counter Mode).
477478

478479
config CRYPTO_POLY1305
479480
tristate "Poly1305 authenticator algorithm"
481+
select CRYPTO_HASH
480482
help
481483
Poly1305 authenticator algorithm, RFC7539.
482484

0 commit comments

Comments
 (0)