mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-31 10:59:17 +01:00
Prime Number Testing
1. Added some new ifdef clauses to tfc and integer so that the prime checking is available when using RSA, DSA, or DH. A couple functions used were dependent on ECC being enabled.
This commit is contained in:
@@ -363,7 +363,8 @@ MP_API int mp_radix_size (mp_int * a, int radix, int *size);
|
||||
#define mp_dump(desc, a, verbose)
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN)
|
||||
#if defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN) || !defined(NO_RSA) || \
|
||||
!defined(NO_DSA) || !defined(NO_DH)
|
||||
MP_API int mp_sqrmod(mp_int* a, mp_int* b, mp_int* c);
|
||||
#endif
|
||||
#if !defined(NO_DSA) || defined(HAVE_ECC)
|
||||
|
||||
Reference in New Issue
Block a user