forked from wolfSSL/wolfssl
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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user