mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Maintentance: Prime
1. Revisited the option enables around the wolfCrypt prime test. Added a check for key generation to the check for public MP.
This commit is contained in:
@@ -391,7 +391,7 @@ int memory_test(void);
|
|||||||
#ifdef HAVE_VALGRIND
|
#ifdef HAVE_VALGRIND
|
||||||
int mp_test(void);
|
int mp_test(void);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_PUBLIC_MP
|
#if defined(WOLFSSL_PUBLIC_MP) && defined(WOLFSSL_KEY_GEN)
|
||||||
int prime_test(void);
|
int prime_test(void);
|
||||||
#endif
|
#endif
|
||||||
#ifdef ASN_BER_TO_DER
|
#ifdef ASN_BER_TO_DER
|
||||||
@@ -1080,7 +1080,7 @@ initDefaultName();
|
|||||||
test_pass("mp test passed!\n");
|
test_pass("mp test passed!\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_PUBLIC_MP)
|
#if defined(WOLFSSL_PUBLIC_MP) && defined(WOLFSSL_KEY_GEN)
|
||||||
if ( (ret = prime_test()) != 0)
|
if ( (ret = prime_test()) != 0)
|
||||||
return err_sys("prime test failed!\n", ret);
|
return err_sys("prime test failed!\n", ret);
|
||||||
else
|
else
|
||||||
@@ -24568,7 +24568,7 @@ done:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_PUBLIC_MP)
|
#if defined(WOLFSSL_PUBLIC_MP) && defined(WOLFSSL_KEY_GEN)
|
||||||
|
|
||||||
typedef struct pairs_t {
|
typedef struct pairs_t {
|
||||||
const unsigned char* coeff;
|
const unsigned char* coeff;
|
||||||
|
Reference in New Issue
Block a user