Merge pull request #8105 from kareem-wolfssl/zd18825

Fix 256-bit ECC conditional in ecc_map_ex.
This commit is contained in:
JacobBarthelmeh 2024-10-23 15:19:50 -06:00 committed by GitHub
commit 8fbf6a59bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2917,7 +2917,7 @@ done:
if ((mp_count_bits(modulus) == 256) && (!mp_is_bit_set(modulus, 224))) {
err = sp_ecc_map_sm2_256(P->x, P->y, P->z);
}
#elif defined(WOLFSSL_SP_NO_256)
#elif !defined(WOLFSSL_SP_NO_256)
if (mp_count_bits(modulus) == 256) {
err = sp_ecc_map_256(P->x, P->y, P->z);
}