From aef44ff02939711921a3410f3904a5166d26427f Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Thu, 23 Feb 2023 17:01:34 -0800 Subject: [PATCH] fix WOLFSSL_SHA_CTX for OpenSSL w/Espressif HW hash --- wolfssl/openssl/sha.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfssl/openssl/sha.h b/wolfssl/openssl/sha.h index 834143034..111f0a933 100644 --- a/wolfssl/openssl/sha.h +++ b/wolfssl/openssl/sha.h @@ -42,6 +42,8 @@ typedef struct WOLFSSL_SHA_CTX { #if defined(STM32_HASH) void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(STM32_HASH_Context)) / sizeof(void*)]; +#elif defined(WOLFSSL_ESPWROOM32) && !defined(NO_WOLFSSL_ESP32WROOM32_CRYPT_HASH) + void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(WC_ESP32SHA)) / sizeof(void*)]; #elif defined(WOLFSSL_IMXRT1170_CAAM) void* holder[(112 + WC_ASYNC_DEV_SIZE + sizeof(caam_hash_ctx_t) + sizeof(caam_handle_t)) / sizeof(void*)]; @@ -334,4 +336,3 @@ WOLFSSL_API int wolfSSL_SHA512_256_Transform(WOLFSSL_SHA512_CTX* sha512, #endif /* WOLFSSL_SHA_H_ */ -