mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Merge pull request #1684 from maximluo/dev-sm2
move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option
This commit is contained in:
@@ -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_TLS_DEBUG "Enable TLS and TLCP print debug message" OFF)
|
||||||
|
|
||||||
|
option (ENABLE_SM2_ENC_PRE_COMPUTE "Enable SM2 encryption precomputing" ON)
|
||||||
|
|
||||||
set(src
|
set(src
|
||||||
src/version.c
|
src/version.c
|
||||||
|
|||||||
@@ -710,7 +710,6 @@ int sm2_encrypt_init(SM2_ENC_CTX *ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ENABLE_SM2_ENC_PRE_COMPUTE 1
|
|
||||||
#if ENABLE_SM2_ENC_PRE_COMPUTE
|
#if ENABLE_SM2_ENC_PRE_COMPUTE
|
||||||
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
|
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
|
||||||
error_print();
|
error_print();
|
||||||
|
|||||||
@@ -530,7 +530,6 @@ int sm2_encrypt_init(SM2_ENC_CTX *ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ENABLE_SM2_ENC_PRE_COMPUTE 1
|
|
||||||
#if ENABLE_SM2_ENC_PRE_COMPUTE
|
#if ENABLE_SM2_ENC_PRE_COMPUTE
|
||||||
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
|
if (sm2_encrypt_pre_compute(ctx->pre_comp) != 1) {
|
||||||
error_print();
|
error_print();
|
||||||
|
|||||||
Reference in New Issue
Block a user