Merge pull request #1684 from maximluo/dev-sm2

move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option
This commit is contained in:
Zhi Guan
2024-05-29 09:48:59 +08:00
committed by GitHub
3 changed files with 1 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ option(ENABLE_ASM_UNDERSCORE_PREFIX "Add prefix `_` to assembly symbols" ON)
option(ENABLE_TLS_DEBUG "Enable TLS and TLCP print debug message" OFF)
option (ENABLE_SM2_ENC_PRE_COMPUTE "Enable SM2 encryption precomputing" ON)
set(src
src/version.c

View File

@@ -710,7 +710,6 @@ int sm2_encrypt_init(SM2_ENC_CTX *ctx)
return -1;
}
#define ENABLE_SM2_ENC_PRE_COMPUTE 1
#if ENABLE_SM2_ENC_PRE_COMPUTE
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
error_print();

View File

@@ -530,7 +530,6 @@ int sm2_encrypt_init(SM2_ENC_CTX *ctx)
return -1;
}
#define ENABLE_SM2_ENC_PRE_COMPUTE 1
#if ENABLE_SM2_ENC_PRE_COMPUTE
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
error_print();