Skip to content

Commit

Permalink
Fix 256-bit ECC conditional in ecc_map_ex.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareem-wolfssl committed Oct 23, 2024
1 parent 6e14889 commit 8986a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2917,7 +2917,7 @@ int ecc_map_ex(ecc_point* P, mp_int* modulus, mp_digit mp, int ct)
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);
}
Expand Down

0 comments on commit 8986a9d

Please sign in to comment.