Merge pull request #1853 from dgarske/mp_add_d

Fixes for missing `mp_add_d`
pull/1854/head
Kaleb Himes 2018-09-26 13:50:14 -06:00 committed by GitHub
commit 5cd428eaa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -48,9 +48,6 @@ extern "C" {
/* ------------------------------------------------------------------------- */
/* Math Configuration */
/* ------------------------------------------------------------------------- */
#undef USE_FAST_MATH
#define USE_FAST_MATH
#undef SIZEOF_LONG_LONG
#define SIZEOF_LONG_LONG 8

View File

@ -4005,7 +4005,8 @@ int mp_sqrmod (mp_int * a, mp_int * b, mp_int * c)
#if defined(HAVE_ECC) || !defined(NO_PWDBASED) || defined(WOLFSSL_SNIFFER) || \
defined(WOLFSSL_HAVE_WOLFSCEP) || defined(WOLFSSL_KEY_GEN) || \
defined(OPENSSL_EXTRA) || defined(WC_RSA_BLINDING)
defined(OPENSSL_EXTRA) || defined(WC_RSA_BLINDING) || \
(!defined(NO_RSA) && !defined(NO_RSA_BOUNDS_CHECK))
/* single digit addition */
int mp_add_d (mp_int* a, mp_digit b, mp_int* c)

View File

@ -3681,7 +3681,8 @@ int fp_gcd(fp_int *a, fp_int *b, fp_int *c)
#if defined(HAVE_ECC) || !defined(NO_PWDBASED) || defined(OPENSSL_EXTRA) || \
defined(WC_RSA_BLINDING)
defined(WC_RSA_BLINDING) || !defined(NO_DSA) || \
(!defined(NO_RSA) && !defined(NO_RSA_BOUNDS_CHECK))
/* c = a + b */
void fp_add_d(fp_int *a, fp_digit b, fp_int *c)
{
@ -3714,7 +3715,8 @@ int mp_add_d(fp_int *a, fp_digit b, fp_int *c)
return MP_OKAY;
}
#endif /* HAVE_ECC || !NO_PWDBASED */
#endif /* HAVE_ECC || !NO_PWDBASED || OPENSSL_EXTRA || WC_RSA_BLINDING ||
!NO_DSA || (!NO_RSA && !NO_RSA_BOUNDS_CHECK) */
#if !defined(NO_DSA) || defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN) || \