From 247c98d9548fead121e5314727782a4694bc0de3 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 26 Jan 2025 16:21:13 +0100 Subject: Implement SHA256 acceleration on ARM64 platforms using CPU instructions --- src/Volume/Volume.make | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Volume/Volume.make') diff --git a/src/Volume/Volume.make b/src/Volume/Volume.make index e38542bb..a4f62562 100644 --- a/src/Volume/Volume.make +++ b/src/Volume/Volume.make @@ -50,6 +50,7 @@ ifneq "$(COMPILE_ASM)" "false" OBJSEX += ../Crypto/Camellia_aesni_asm.oo OBJSEX += ../Crypto/sha256-nayuki.oo OBJSEX += ../Crypto/sha512-nayuki.oo + OBJSEX += ../Crypto/sha256_armv8.oo OBJSEX += ../Crypto/sha256_avx1.oo OBJSEX += ../Crypto/sha256_avx2.oo OBJSEX += ../Crypto/sha256_sse4.oo @@ -82,6 +83,7 @@ else ifeq "$(CPU_ARCH)" "x64" else ifeq "$(CPU_ARCH)" "arm64" OBJARMV8CRYPTO += ../Crypto/Aes_hw_armv8.oarmv8crypto OBJS += ../Crypto/Aescrypt.o + OBJARMV8CRYPTO += ../Crypto/sha256_armv8.oarmv8crypto else OBJS += ../Crypto/Aescrypt.o endif @@ -150,6 +152,12 @@ ifneq "$(COMPILE_ASM)" "false" $(CC) $(CFLAGS_X64) -c ../Crypto/Aes_hw_armv8.c -o ../Crypto/Aes_hw_armv8_x64.o lipo -create ../Crypto/Aes_hw_armv8_arm64.o ../Crypto/Aes_hw_armv8_x64.o -output ../Crypto/Aes_hw_armv8.oo rm -fr ../Crypto/Aes_hw_armv8_arm64.o ../Crypto/Aes_hw_armv8_x64.o +../Crypto/sha256_armv8.oo: ../Crypto/sha256_armv8.c + @echo Compiling $(