Allow crypto callbacks with SHA-1 HW. Resolves build error in test.c with trying to use HW SHA-1 with crypto cb enabled. Note: sha.h changes are very small if ignoring whitespace.

This commit is contained in:
David Garske
2023-12-20 15:48:21 -08:00
parent a5464a9b51
commit 9311a961a0
3 changed files with 35 additions and 35 deletions

View File

@ -145,6 +145,7 @@ struct wc_Sha {
word32 digest[WC_SHA_DIGEST_SIZE / sizeof(word32)];
#endif
void* heap;
#endif
#ifdef WOLFSSL_PIC32MZ_HASH
hashUpdCache cache; /* cache for updates */
#endif
@ -164,7 +165,6 @@ struct wc_Sha {
word32 used;
word32 len;
#endif
#endif
#if defined(WOLFSSL_ESP32_CRYPT) && \
!defined(NO_WOLFSSL_ESP32_CRYPT_HASH)
WC_ESP32SHA ctx;