mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #5390 from kareem-wolfssl/bnGenPrimeRsa
Update sp_rand_prime's preprocessor gating to match wolfSSL_BN_generate_prime_ex's.
This commit is contained in:
@ -15672,8 +15672,8 @@ int sp_radix_size(sp_int* a, int radix, int* size)
|
|||||||
* Prime number generation and checking.
|
* Prime number generation and checking.
|
||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
#if defined(WOLFSSL_KEY_GEN) && (!defined(NO_DH) || !defined(NO_DSA)) && \
|
#if defined(WOLFSSL_KEY_GEN) && (!defined(NO_RSA) || !defined(NO_DH) || \
|
||||||
!defined(WC_NO_RNG)
|
!defined(NO_DSA)) && !defined(WC_NO_RNG)
|
||||||
/* Generate a random prime for RSA only.
|
/* Generate a random prime for RSA only.
|
||||||
*
|
*
|
||||||
* @param [out] r SP integer to hold result.
|
* @param [out] r SP integer to hold result.
|
||||||
|
Reference in New Issue
Block a user