From 8d2c8b0c89627d80d96d7b1bd21e9a4cc4f717c0 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 23 Sep 2020 16:23:55 -0700 Subject: [PATCH] And the CAVP self test. --- tests/api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index ec96d198c..9c668d9a1 100644 --- a/tests/api.c +++ b/tests/api.c @@ -6473,7 +6473,7 @@ static int test_wc_Sha256Final (void) static int test_wc_Sha256FinalRaw (void) { int flag = 0; -#if !defined(NO_SHA256) && (!defined(HAVE_FIPS) || \ +#if !defined(NO_SHA256) && !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \ (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3))) wc_Sha256 sha256; byte* hash_test[3]; @@ -6920,7 +6920,7 @@ static int test_wc_Sha512GetFlags (void) static int test_wc_Sha512FinalRaw (void) { int flag = 0; -#if defined(WOLFSSL_SHA512) && (!defined(HAVE_FIPS) || \ +#if defined(WOLFSSL_SHA512) && !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \ (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3))) wc_Sha512 sha512; byte* hash_test[3]; @@ -7342,7 +7342,7 @@ static int test_wc_Sha384GetFlags (void) static int test_wc_Sha384FinalRaw (void) { int flag = 0; -#if defined(WOLFSSL_SHA384) && (!defined(HAVE_FIPS) || \ +#if defined(WOLFSSL_SHA384) && !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \ (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3))) wc_Sha384 sha384; byte* hash_test[3];