forked from wolfSSL/wolfssl
Enable TFM mp_sqr even when HAVE_ECC disabled
This commit is contained in:
@ -6092,14 +6092,14 @@ int mp_montgomery_setup(fp_int *a, fp_digit *rho)
|
|||||||
|
|
||||||
#endif /* HAVE_ECC || (!NO_RSA && WC_RSA_BLINDING) */
|
#endif /* HAVE_ECC || (!NO_RSA && WC_RSA_BLINDING) */
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
|
||||||
|
|
||||||
/* fast math conversion */
|
/* fast math conversion */
|
||||||
int mp_sqr(fp_int *A, fp_int *B)
|
int mp_sqr(fp_int *A, fp_int *B)
|
||||||
{
|
{
|
||||||
return fp_sqr(A, B);
|
return fp_sqr(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_ECC
|
||||||
|
|
||||||
/* fast math conversion */
|
/* fast math conversion */
|
||||||
int mp_div_2(fp_int * a, fp_int * b)
|
int mp_div_2(fp_int * a, fp_int * b)
|
||||||
{
|
{
|
||||||
|
@ -877,8 +877,9 @@ MP_API int mp_radix_size (mp_int * a, int radix, int *size);
|
|||||||
MP_API int mp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp);
|
MP_API int mp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp);
|
||||||
MP_API int mp_montgomery_reduce_ex(fp_int *a, fp_int *m, fp_digit mp, int ct);
|
MP_API int mp_montgomery_reduce_ex(fp_int *a, fp_int *m, fp_digit mp, int ct);
|
||||||
MP_API int mp_montgomery_setup(fp_int *a, fp_digit *rho);
|
MP_API int mp_montgomery_setup(fp_int *a, fp_digit *rho);
|
||||||
|
MP_API int mp_sqr(fp_int *a, fp_int *b);
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
MP_API int mp_sqr(fp_int *a, fp_int *b);
|
|
||||||
MP_API int mp_div_2(fp_int * a, fp_int * b);
|
MP_API int mp_div_2(fp_int * a, fp_int * b);
|
||||||
MP_API int mp_div_2_mod_ct(mp_int *a, mp_int *b, mp_int *c);
|
MP_API int mp_div_2_mod_ct(mp_int *a, mp_int *b, mp_int *c);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user