[PATCH master 3/3] crypto: restrict digest algos implemented in ARM assembly to 32-bit

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Aug 7 23:20:10 PDT 2022


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 <a.fatoum at pengutronix.de>
---
 crypto/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index a2e03ae1096e..f32accb3d090 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
-- 
2.30.2




More information about the barebox mailing list