Fix sm2 asm build errors on x86

This commit is contained in:
Zhi Guan
2018-11-21 16:35:50 +08:00
parent 322c660970
commit e7dc7b2656
2 changed files with 2 additions and 2 deletions

View File

@@ -138,7 +138,7 @@
template => 1,
cpuid_asm_src => "x86cpuid.s",
bn_asm_src => "bn-586.s co-586.s x86-mont.s x86-gf2m.s",
ec_asm_src => "ecp_nistz256.c ecp_nistz256-x86.s ecp_sm2z256.c ecp_sm2z256-x86.s",
ec_asm_src => "ecp_nistz256.c ecp_nistz256-x86.s",
des_asm_src => "des-586.s crypt586.s",
aes_asm_src => "aes-586.s vpaes-x86.s aesni-x86.s",
bf_asm_src => "bf-586.s",

View File

@@ -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)
# if defined(ECP_NISTZ256_ASM) && BN_BITS2 == 64
EC_GFp_sm2z256_method,
# elif !defined(OPENSSL_NO_EC_NISTP_64_GCC_128)
EC_GFp_sm2p256_method,