Update visibility on a SP math function for DH.

This commit is contained in:
John Safranek
2021-04-16 09:41:29 -07:00
parent 78ed928c8b
commit 6bb50db271
2 changed files with 3 additions and 3 deletions

View File

@ -2845,7 +2845,7 @@ int sp_set_bit(sp_int* a, int i)
* WOLFSSL_KEY_GEN || OPENSSL_EXTRA || !NO_RSA */
#if (defined(WOLFSSL_SP_MATH_ALL) && !defined(WOLFSSL_RSA_VERIFY_ONLY)) || \
defined(WOLFSSL_KEY_GEN)
defined(WOLFSSL_KEY_GEN) || !defined(NO_DH)
/* Exponentiate 2 to the power of e: a = 2^e
* This is done by setting the 'e'th bit.
*
@ -2870,7 +2870,7 @@ int sp_2expt(sp_int* a, int e)
return err;
}
#endif /* (WOLFSSL_SP_MATH_ALL && !WOLFSSL_RSA_VERIFY_ONLY) ||
* WOLFSSL_KEY_GEN */
* WOLFSSL_KEY_GEN || !NO_DH */
/**********************
* Digit/Long functions

View File

@ -34021,7 +34021,7 @@ static int mp_test_param(mp_int* a, mp_int* b, mp_int* r, WC_RNG* rng)
return -12766;
#endif
#if defined(WOLFSSL_KEY_GEN)
#if defined(WOLFSSL_KEY_GEN) || !defined(NO_DH)
ret = sp_2expt(NULL, 1);
if (ret != MP_VAL)
return -12767;