Skip to content

Commit aee446f

Browse files
committed
Build SHA3 assembly with INTEL_SPEEDUP
Make sure the file `sha3_asm.S` is compiled when `WOLFSSL_INTEL_ASM` is enabled using CMake. Signed-off-by: Tobias Frauenschläger <tobias.frauenschlaeger@oth-regensburg.de>
1 parent 1b8254d commit aee446f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cmake/functions.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ function(generate_lib_src_list LIB_SOURCES)
399399

400400
if(BUILD_SHA3)
401401
list(APPEND LIB_SOURCES wolfcrypt/src/sha3.c)
402+
403+
if(BUILD_INTELASM)
404+
list(APPEND LIB_SOURCES wolfcrypt/src/sha3_asm.S)
405+
endif()
402406
endif()
403407

404408
if(BUILD_DH)
@@ -582,6 +586,10 @@ function(generate_lib_src_list LIB_SOURCES)
582586

583587
if(NOT BUILD_FIPS_V2 AND BUILD_SHA3)
584588
list(APPEND LIB_SOURCES wolfcrypt/src/sha3.c)
589+
590+
if(BUILD_INTELASM)
591+
list(APPEND LIB_SOURCES wolfcrypt/src/sha3_asm.S)
592+
endif()
585593
endif()
586594
endif()
587595

0 commit comments

Comments
 (0)