Skip to content

Commit

Permalink
Merge pull request #8105 from kareem-wolfssl/zd18825
Browse files Browse the repository at this point in the history
Fix 256-bit ECC conditional in ecc_map_ex.
  • Loading branch information
JacobBarthelmeh authored Oct 23, 2024
2 parents 6e14889 + 8986a9d commit 8fbf6a5
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 8fbf6a5

Please sign in to comment.