Merge pull request #7087 from dgarske/cryptocb_sha1

Allow crypto callbacks with SHA-1 HW
This commit is contained in:
Sean Parkinson
2023-12-22 07:54:50 +10:00
committed by GitHub
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)]; word32 digest[WC_SHA_DIGEST_SIZE / sizeof(word32)];
#endif #endif
void* heap; void* heap;
#endif
#ifdef WOLFSSL_PIC32MZ_HASH #ifdef WOLFSSL_PIC32MZ_HASH
hashUpdCache cache; /* cache for updates */ hashUpdCache cache; /* cache for updates */
#endif #endif
@@ -164,7 +165,6 @@ struct wc_Sha {
word32 used; word32 used;
word32 len; word32 len;
#endif #endif
#endif
#if defined(WOLFSSL_ESP32_CRYPT) && \ #if defined(WOLFSSL_ESP32_CRYPT) && \
!defined(NO_WOLFSSL_ESP32_CRYPT_HASH) !defined(NO_WOLFSSL_ESP32_CRYPT_HASH)
WC_ESP32SHA ctx; WC_ESP32SHA ctx;