From aee446f3e5589591dff4b181ff670638a2f251eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Frauenschl=C3=A4ger?= Date: Thu, 1 Aug 2024 10:33:09 +0200 Subject: [PATCH] Build SHA3 assembly with INTEL_SPEEDUP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure the file `sha3_asm.S` is compiled when `WOLFSSL_INTEL_ASM` is enabled using CMake. Signed-off-by: Tobias Frauenschläger --- cmake/functions.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/functions.cmake b/cmake/functions.cmake index 0fa91a6e1..3c8832c2c 100644 --- a/cmake/functions.cmake +++ b/cmake/functions.cmake @@ -399,6 +399,10 @@ function(generate_lib_src_list LIB_SOURCES) if(BUILD_SHA3) list(APPEND LIB_SOURCES wolfcrypt/src/sha3.c) + + if(BUILD_INTELASM) + list(APPEND LIB_SOURCES wolfcrypt/src/sha3_asm.S) + endif() endif() if(BUILD_DH) @@ -582,6 +586,10 @@ function(generate_lib_src_list LIB_SOURCES) if(NOT BUILD_FIPS_V2 AND BUILD_SHA3) list(APPEND LIB_SOURCES wolfcrypt/src/sha3.c) + + if(BUILD_INTELASM) + list(APPEND LIB_SOURCES wolfcrypt/src/sha3_asm.S) + endif() endif() endif()