mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user