Update visibility on a SP math function for DH.

pull/4359/head
John Safranek 2021-04-16 09:41:29 -07:00 committed by Daniel Pouzzner
parent 04ffd2ab45
commit aa3fb6f0d0
2 changed files with 3 additions and 3 deletions

View File

@ -2855,7 +2855,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.
*
@ -2880,7 +2880,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

@ -34799,7 +34799,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;