Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: arm64/aes - Select CRYPTO_LIB_SHA256 from correct places

The call to sha256() occurs in code that is built when either
CRYPTO_AES_ARM64_CE_BLK or CRYPTO_AES_ARM64_NEON_BLK. The option
CRYPTO_AES_ARM64 is unrelated, notwithstanding its documentation. I'll
be removing CRYPTO_AES_ARM64 soon anyway, but before doing that, fix
where CRYPTO_LIB_SHA256 is selected from.

Fixes: 01834444d972 ("crypto: arm64/aes - use SHA-256 library instead of crypto_shash")
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+2 -1
+2 -1
arch/arm64/crypto/Kconfig
··· 40 40 config CRYPTO_AES_ARM64 41 41 tristate "Ciphers: AES, modes: ECB, CBC, CTR, CTS, XCTR, XTS" 42 42 select CRYPTO_AES 43 - select CRYPTO_LIB_SHA256 44 43 help 45 44 Block ciphers: AES cipher algorithms (FIPS-197) 46 45 Length-preserving ciphers: AES with ECB, CBC, CTR, CTS, ··· 65 66 depends on KERNEL_MODE_NEON 66 67 select CRYPTO_SKCIPHER 67 68 select CRYPTO_AES_ARM64_CE 69 + select CRYPTO_LIB_SHA256 68 70 help 69 71 Length-preserving ciphers: AES cipher algorithms (FIPS-197) 70 72 with block cipher modes: ··· 83 83 depends on KERNEL_MODE_NEON 84 84 select CRYPTO_SKCIPHER 85 85 select CRYPTO_LIB_AES 86 + select CRYPTO_LIB_SHA256 86 87 help 87 88 Length-preserving ciphers: AES cipher algorithms (FIPS-197) 88 89 with block cipher modes: