Merge pull request #3708 from JacobBarthelmeh/Testing

This commit is contained in:
David Garske
2021-02-01 10:11:16 -08:00
committed by GitHub

View File

@ -44,6 +44,11 @@
#undef err_sys #undef err_sys
#endif #endif
#if defined(WC_ECC_NONBLOCK) && defined(WOLFSSL_PUBLIC_MP) && \
defined(HAVE_ECC_SIGN) && defined(HAVE_ECC_VERIFY)
#include <stdint.h>
#endif
#if defined(HAVE_STACK_SIZE_VERBOSE) #if defined(HAVE_STACK_SIZE_VERBOSE)
#ifdef WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES #ifdef WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES
static ssize_t max_relative_stack = WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES; static ssize_t max_relative_stack = WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES;
@ -13084,7 +13089,7 @@ done:
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */ #if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
/* Need to create known good signatures to test with this. */ /* Need to create known good signatures to test with this. */
#ifndef WOLFSSL_RSA_VERIFY_ONLY #if !defined(WOLFSSL_RSA_VERIFY_ONLY) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)
static int rsa_pss_test(WC_RNG* rng, RsaKey* key) static int rsa_pss_test(WC_RNG* rng, RsaKey* key)
{ {
byte digest[WC_MAX_DIGEST_SIZE]; byte digest[WC_MAX_DIGEST_SIZE];
@ -15506,7 +15511,7 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void)
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */ #if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
/* Need to create known good signatures to test with this. */ /* Need to create known good signatures to test with this. */
#ifndef WOLFSSL_RSA_VERIFY_ONLY #if !defined(WOLFSSL_RSA_VERIFY_ONLY) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)
ret = rsa_pss_test(&rng, key); ret = rsa_pss_test(&rng, key);
if (ret != 0) if (ret != 0)
goto exit_rsa; goto exit_rsa;