From 7ca7a96c9979195f906de03c826a2dba6bc18ec4 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 8 Aug 2022 08:20:10 +0200 Subject: crypto: restrict digest algos implemented in ARM assembly to 32-bit These digest implementations are only built per arch/arm/Makefile when !CONFIG_CPU_V8, so disallow selecting them when barebox is built for 64-bit ARM. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220808062010.390394-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- crypto/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/Kconfig') diff --git a/crypto/Kconfig b/crypto/Kconfig index a2e03ae109..f32accb3d0 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -71,7 +71,7 @@ config DIGEST_HMAC_GENERIC config DIGEST_SHA1_ARM tristate "SHA1 digest algorithm (ARM-asm)" - depends on ARM + depends on ARM && !CPU_V8 select HAVE_DIGEST_SHA1 help SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented @@ -79,7 +79,7 @@ config DIGEST_SHA1_ARM config DIGEST_SHA256_ARM tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)" - depends on ARM + depends on ARM && !CPU_V8 select HAVE_DIGEST_SHA256 select HAVE_DIGEST_SHA224 help -- cgit v1.2.3