Do not directly include psoc6 port header to prevent loops

This commit is contained in:
Daniele Lacamera
2021-06-08 08:24:43 +02:00
parent a5a4925370
commit 6d1981abd1
4 changed files with 13 additions and 4 deletions

View File

@@ -33,6 +33,7 @@
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/version.h>
#include <wolfssl/wolfcrypt/wc_port.h>
#include <wolfssl/wolfcrypt/ecc.h>
/* Macro to disable benchmark */
#ifndef NO_CRYPT_BENCHMARK

View File

@@ -29,6 +29,7 @@
#include "cy_crypto_common.h"
#include "cy_crypto_core.h"
#ifdef WOLFSSL_SHA512
#include <wolfssl/wolfcrypt/sha512.h>
#endif

View File

@@ -65,6 +65,13 @@
#include "fsl_dcp.h"
#endif
#if defined(WOLFSSL_PSOC6_CRYPTO)
#include "cy_crypto_core_sha.h"
#include "cy_device_headers.h"
#include "cy_crypto_common.h"
#include "cy_crypto_core.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -94,9 +101,6 @@
#if defined(WOLFSSL_SILABS_SE_ACCEL)
#include <wolfssl/wolfcrypt/port/silabs/silabs_hash.h>
#endif
#if defined(WOLFSSL_PSOC6_CRYPTO)
#include <wolfssl/wolfcrypt/port/cypress/psoc6_crypto.h>
#endif
#if defined(_MSC_VER)
#define SHA256_NOINLINE __declspec(noinline)

View File

@@ -80,7 +80,10 @@
#include <wolfssl/wolfcrypt/port/silabs/silabs_hash.h>
#endif
#if defined(WOLFSSL_PSOC6_CRYPTO)
#include <wolfssl/wolfcrypt/port/cypress/psoc6_crypto.h>
#include "cy_crypto_core_sha.h"
#include "cy_device_headers.h"
#include "cy_crypto_common.h"
#include "cy_crypto_core.h"
#endif
#if defined(_MSC_VER)