From 3223fa9c98a0c4be5d22786c7f7783565b107e9e Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Tue, 31 Jan 2023 03:33:39 -0800 Subject: [PATCH] fix WOLFSSL_SHA_CTX for OpenSSL w/Espressif HW hash --- wolfssl/openssl/sha.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfssl/openssl/sha.h b/wolfssl/openssl/sha.h index 0fb71eeb59..85a97a7cfb 100644 --- a/wolfssl/openssl/sha.h +++ b/wolfssl/openssl/sha.h @@ -41,6 +41,8 @@ typedef struct WOLFSSL_SHA_CTX { /* big enough to hold wolfcrypt Sha, but check on init */ #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*)]; #else void* holder[(112 + WC_ASYNC_DEV_SIZE) / sizeof(void*)]; #endif