diff --git a/scripts/makedistsmall.sh b/scripts/makedistsmall.sh index 3532a5896..9c38e568a 100755 --- a/scripts/makedistsmall.sh +++ b/scripts/makedistsmall.sh @@ -42,8 +42,6 @@ echo "Removing files not needed..." rm -rf -- ./.git* rm -rf ./build-aux rm -rf ./certs -rm -rf ./ctaocrypt -rm -rf ./cyassl rm -rf ./doc rm -rf ./Docker # these use test.h, which are not portable diff --git a/wolfssl/wolfcrypt/asn.h b/wolfssl/wolfcrypt/asn.h index 9b0a1a5ef..f7aa9794c 100644 --- a/wolfssl/wolfcrypt/asn.h +++ b/wolfssl/wolfcrypt/asn.h @@ -45,12 +45,6 @@ that can be serialized and deserialized in a cross-platform way. #include -/* fips declare of RsaPrivateKeyDecode @wc_fips */ -#if defined(HAVE_FIPS) && !defined(NO_RSA) && \ - (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) - #include -#endif - #ifndef NO_DH #include #endif diff --git a/wolfssl/wolfcrypt/des3.h b/wolfssl/wolfcrypt/des3.h index 96e154dd2..d5b123212 100644 --- a/wolfssl/wolfcrypt/des3.h +++ b/wolfssl/wolfcrypt/des3.h @@ -35,12 +35,6 @@ #include #endif /* HAVE_FIPS_VERSION >= 2 */ -#if defined(HAVE_FIPS) && \ - (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) - /* included for fips @wc_fips */ - #include -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index dff5f14ff..ac6186d5c 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -33,11 +33,6 @@ the error status. #include -#if defined(HAVE_FIPS) && \ - (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) - #include -#endif /* HAVE_FIPS V1 */ - #ifdef __cplusplus extern "C" { #endif diff --git a/wolfssl/wolfcrypt/hmac.h b/wolfssl/wolfcrypt/hmac.h index 6199cb9a6..09a9f71fc 100644 --- a/wolfssl/wolfcrypt/hmac.h +++ b/wolfssl/wolfcrypt/hmac.h @@ -32,8 +32,6 @@ #if defined(HAVE_FIPS) && \ (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) -/* for fips @wc_fips */ - #include #define WC_HMAC_BLOCK_SIZE HMAC_BLOCK_SIZE #endif diff --git a/wolfssl/wolfcrypt/random.h b/wolfssl/wolfcrypt/random.h index b7d758849..8cd599bdd 100644 --- a/wolfssl/wolfcrypt/random.h +++ b/wolfssl/wolfcrypt/random.h @@ -35,12 +35,6 @@ #include #endif /* HAVE_FIPS_VERSION >= 2 */ -/* included for fips @wc_fips */ -#if defined(HAVE_FIPS) && \ - (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)) -#include -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/wolfssl/wolfcrypt/sha256.h b/wolfssl/wolfcrypt/sha256.h index 872bf1bd8..0bc7bf1a1 100644 --- a/wolfssl/wolfcrypt/sha256.h +++ b/wolfssl/wolfcrypt/sha256.h @@ -52,9 +52,6 @@ #define WC_SHA224_DIGEST_SIZE SHA224_DIGEST_SIZE #define WC_SHA224_PAD_SIZE SHA224_PAD_SIZE #endif - - /* for fips @wc_fips */ - #include #endif #ifdef FREESCALE_LTC_SHA