diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf index dd4d8c18..bf3dd5f0 100644 --- a/Configurations/00-base-templates.conf +++ b/Configurations/00-base-templates.conf @@ -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", diff --git a/crypto/ec/ec_curve.c b/crypto/ec/ec_curve.c index 46903963..2a3484d6 100644 --- a/crypto/ec/ec_curve.c +++ b/crypto/ec/ec_curve.c @@ -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,