From 9cb2c9f1ac99a359775731e4eb4f930fd9952524 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Fri, 9 Oct 2020 13:36:53 +0200 Subject: [PATCH] Fixed SHA256 support for IMX-RT1060 --- wolfcrypt/src/sha256.c | 2 ++ wolfssl/wolfcrypt/port/nxp/dcp_port.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wolfcrypt/src/sha256.c b/wolfcrypt/src/sha256.c index 11e186032..a61da0081 100644 --- a/wolfcrypt/src/sha256.c +++ b/wolfcrypt/src/sha256.c @@ -130,6 +130,8 @@ where 0 <= L < 2^64. #elif defined(WOLFSSL_CRYPTOCELL) /* wc_port.c includes wolfcrypt/src/port/arm/cryptoCellHash.c */ +#elif defined(WOLFSSL_IMXRT_DCP) + #elif defined(WOLFSSL_PSOC6_CRYPTO) diff --git a/wolfssl/wolfcrypt/port/nxp/dcp_port.h b/wolfssl/wolfcrypt/port/nxp/dcp_port.h index 373d0a875..8d7fcd9ea 100644 --- a/wolfssl/wolfcrypt/port/nxp/dcp_port.h +++ b/wolfssl/wolfcrypt/port/nxp/dcp_port.h @@ -38,6 +38,7 @@ int wc_dcp_init(void); +#ifndef NO_AES int DCPAesInit(Aes* aes); void DCPAesFree(Aes *aes); @@ -45,6 +46,7 @@ int DCPAesSetKey(Aes* aes, const byte* key, word32 len, const byte* iv, int dir); int DCPAesCbcEncrypt(Aes* aes, byte* out, const byte* in, word32 sz); int DCPAesCbcDecrypt(Aes* aes, byte* out, const byte* in, word32 sz); +#endif #ifdef HAVE_AES_ECB int DCPAesEcbEncrypt(Aes* aes, byte* out, const byte* in, word32 sz);