Skip to content

Commit

Permalink
fix for sp build with ecc_map_ex
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Apr 2, 2024
1 parent ed4f052 commit d4f5825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2617,6 +2617,7 @@ int ecc_projective_dbl_point(ecc_point *P, ecc_point *R, mp_int* a,
*/
int ecc_map_ex(ecc_point* P, mp_int* modulus, mp_digit mp, int ct)
{
int err = MP_OKAY;
#if !defined(WOLFSSL_SP_MATH)
DECL_MP_INT_SIZE_DYN(t1, mp_bitsused(modulus), MAX_ECC_BITS_USE);
DECL_MP_INT_SIZE_DYN(t2, mp_bitsused(modulus), MAX_ECC_BITS_USE);
Expand All @@ -2626,7 +2627,6 @@ int ecc_map_ex(ecc_point* P, mp_int* modulus, mp_digit mp, int ct)
DECL_MP_INT_SIZE_DYN(rz, mp_bitsused(modulus), MAX_ECC_BITS_USE);
#endif
mp_int *x, *y, *z;
int err;

(void)ct;

Expand Down Expand Up @@ -2844,7 +2844,7 @@ int ecc_map_ex(ecc_point* P, mp_int* modulus, mp_digit mp, int ct)
err = ECC_BAD_ARG_E;
#endif

WOLFSSL_LEAVE("ecc_map_ex (SP Math)");
WOLFSSL_LEAVE("ecc_map_ex (SP Math)", err);
return err;
#endif /* WOLFSSL_SP_MATH */
}
Expand Down

0 comments on commit d4f5825

Please sign in to comment.