Skip to content

Commit

Permalink
compiles with new md5 avx512 file
Browse files Browse the repository at this point in the history
  • Loading branch information
pittma committed May 15, 2024
1 parent b434043 commit e121e43
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 3 deletions.
3 changes: 3 additions & 0 deletions crypto/fipsmodule/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if(ARCH STREQUAL "x86_64")
ghash-ssse3-x86_64.${ASM_EXT}
ghash-x86_64.${ASM_EXT}
md5-x86_64.${ASM_EXT}
md5-avx512.${ASM_EXT}
p256-x86_64-asm.${ASM_EXT}
p256_beeu-x86_64-asm.${ASM_EXT}
rdrand-x86_64.${ASM_EXT}
Expand Down Expand Up @@ -141,6 +142,7 @@ if(PERL_EXECUTABLE)
perlasm(md5-586.${ASM_EXT} md5/asm/md5-586.pl)
perlasm(md5-armv8.${ASM_EXT} md5/asm/md5-armv8.pl)
perlasm(md5-x86_64.${ASM_EXT} md5/asm/md5-x86_64.pl)
perlasm(md5-avx512.${ASM_EXT} md5/asm/md5-avx512.pl)
perlasm(p256-x86_64-asm.${ASM_EXT} ec/asm/p256-x86_64-asm.pl)
perlasm(p256_beeu-x86_64-asm.${ASM_EXT} ec/asm/p256_beeu-x86_64-asm.pl)
perlasm(p256-armv8-asm.${ASM_EXT} ec/asm/p256-armv8-asm.pl)
Expand Down Expand Up @@ -175,6 +177,7 @@ if (CLANG AND (CMAKE_ASM_COMPILER_ID MATCHES "Clang" OR CMAKE_ASM_COMPILER MATCH
(CMAKE_C_COMPILER_VERSION VERSION_LESS "7.0.0") AND (ARCH STREQUAL "x86_64"))
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/aesni-gcm-avx512.${ASM_EXT} PROPERTIES COMPILE_FLAGS "-mavx512f -mavx512bw -mavx512dq -mavx512vl")
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/aesni-xts-avx512.${ASM_EXT} PROPERTIES COMPILE_FLAGS "-mavx512f -mavx512bw -mavx512dq -mavx512vl")
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/md5-avx512.${ASM_EXT} PROPERTIES COMPILE_FLAGS "-mavx512f -mavx512bw -mavx512dq -mavx512vl")
endif()

# s2n-bignum files can be compiled on Unix platforms only (except Apple),
Expand Down
Loading

0 comments on commit e121e43

Please sign in to comment.