mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-12 00:43:38 +08:00
Update SM2 methods
The default `./config` will enable the X86_64 ASM implementation of SM2. Use `./config -DGMSSL_NO_TURBO enable-ec_nistp_64_gcc_128` will enable the fast C implementation of SM2. The `./config -DGMSSL_NO_TURBO` will use the original implementation.
This commit is contained in:
@@ -3129,7 +3129,7 @@ static const ec_list_element curve_list[] = {
|
||||
"RFC 5639 curve over a 512 bit prime field"},
|
||||
#ifndef OPENSSL_NO_SM2
|
||||
{NID_sm2p256v1, &_EC_SM2_PRIME_256V1.h,
|
||||
# if defined(ECP_NISTZ256_ASM) && BN_BITS2 == 64
|
||||
# if defined(ECP_NISTZ256_ASM) && BN_BITS2 == 64 && !defined(GMSSL_NO_TURBO)
|
||||
EC_GFp_sm2z256_method,
|
||||
# elif !defined(OPENSSL_NO_EC_NISTP_64_GCC_128)
|
||||
EC_GFp_sm2p256_method,
|
||||
|
||||
Reference in New Issue
Block a user