mp_set pre-processor logic in fastmath breaking existing builds, normal math not effected

pull/1836/head
kaleb-himes 2018-09-14 14:29:19 -06:00
parent fb699acec4
commit 301e91e4d3
2 changed files with 4 additions and 2 deletions

View File

@ -3886,7 +3886,8 @@ int mp_cnt_lsb(fp_int* a)
#endif /* HAVE_ECC */
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA)
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA) || \
defined(WOLFSSL_KEY_GEN)
/* fast math conversion */
int mp_set(fp_int *a, fp_digit b)
{

View File

@ -725,7 +725,8 @@ MP_API int mp_radix_size (mp_int * a, int radix, int *size);
MP_API int mp_init_copy(fp_int * a, fp_int * b);
#endif
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA)
#if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA) || \
defined(WOLFSSL_KEY_GEN)
MP_API int mp_set(fp_int *a, fp_digit b);
#endif