Skip to content

Commit 8fbf6a5

Browse files
Merge pull request #8105 from kareem-wolfssl/zd18825
Fix 256-bit ECC conditional in ecc_map_ex.
2 parents 6e14889 + 8986a9d commit 8fbf6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/ecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2917,7 +2917,7 @@ int ecc_map_ex(ecc_point* P, mp_int* modulus, mp_digit mp, int ct)
29172917
if ((mp_count_bits(modulus) == 256) && (!mp_is_bit_set(modulus, 224))) {
29182918
err = sp_ecc_map_sm2_256(P->x, P->y, P->z);
29192919
}
2920-
#elif defined(WOLFSSL_SP_NO_256)
2920+
#elif !defined(WOLFSSL_SP_NO_256)
29212921
if (mp_count_bits(modulus) == 256) {
29222922
err = sp_ecc_map_256(P->x, P->y, P->z);
29232923
}

0 commit comments

Comments
 (0)