Skip to content

Commit bfe8fe9

Browse files
rddunlapherbertx
authored andcommitted
crypto: sa2ul - add Kconfig selects to fix build error
sa2ul.c uses sha{1,256,512}_zero_message_hash, so select the Kconfig symbols that provide those, like other crypto drivers do. Fixes this build error: ld: drivers/crypto/sa2ul.o: in function `sa_sha_digest': sa2ul.c:(.text+0x2b25): undefined reference to `sha512_zero_message_hash' Fixes: 7694b6c ("crypto: sa2ul - Add crypto driver") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: Randy Dunlap <[email protected]> # 2020-07-29 Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected] Cc: Tero Kristo <[email protected]> Cc: Keerthy <[email protected]> Reviewed-by: Keerthy <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 11a954e commit bfe8fe9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,9 @@ config CRYPTO_DEV_SA2UL
873873
select CRYPTO_AES
874874
select CRYPTO_AES_ARM64
875875
select CRYPTO_ALGAPI
876+
select CRYPTO_SHA1
877+
select CRYPTO_SHA256
878+
select CRYPTO_SHA512
876879
select HW_RANDOM
877880
select SG_SPLIT
878881
help

0 commit comments

Comments
 (0)