move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option

This commit is contained in:
luokai
2024-05-24 08:24:58 +08:00
parent ec16879fd8
commit 475cb77829
3 changed files with 1 additions and 3 deletions

View File

@@ -60,7 +60,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();