Skip to content

Commit

Permalink
fix WOLFSSL_SHA_CTX for OpenSSL w/Espressif HW hash
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Jan 31, 2023
1 parent b10adae commit 3223fa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wolfssl/openssl/sha.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3223fa9

Please sign in to comment.