mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Add SM3 ASM
This commit is contained in:
@@ -8,7 +8,6 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
|
||||
|
||||
include_directories(include)
|
||||
|
||||
#enable_language(ASM)
|
||||
|
||||
|
||||
set(src
|
||||
@@ -76,6 +75,14 @@ set(src
|
||||
src/tls13.c
|
||||
)
|
||||
|
||||
option(ENABLE_SM3_AVX_BMI2 "Enable SM3 AVX+BMI2 assembly implementation" OFF)
|
||||
|
||||
|
||||
if (ENABLE_SM3_AVX_BMI2)
|
||||
enable_language(ASM)
|
||||
list(APPEND src src/sm3_avx_bmi2.s)
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND src src/u_time.c)
|
||||
list(APPEND src src/rand_win.c)
|
||||
@@ -247,4 +254,4 @@ if (CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||
target_compile_options(gmssl PRIVATE /wd4996)
|
||||
target_compile_options(gmssl-bin PRIVATE /wd4996)
|
||||
# target_compile_options(gmssl PRIVATE /wd4996)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user