mirror of https://github.com/wolfSSL/wolfssl.git
Revert "Move heap variable to all sha implementations"
This reverts commit a3f6babfdc
.
pull/8065/head
parent
886ebb6ec0
commit
2ca3e1100e
|
@ -151,8 +151,8 @@ struct wc_Sha {
|
||||||
#else
|
#else
|
||||||
word32 digest[WC_SHA_DIGEST_SIZE / sizeof(word32)];
|
word32 digest[WC_SHA_DIGEST_SIZE / sizeof(word32)];
|
||||||
#endif
|
#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
|
||||||
|
|
|
@ -194,13 +194,13 @@ struct wc_Sha256 {
|
||||||
word32 buffLen; /* in bytes */
|
word32 buffLen; /* in bytes */
|
||||||
word32 loLen; /* length in bytes */
|
word32 loLen; /* length in bytes */
|
||||||
word32 hiLen; /* length in bytes */
|
word32 hiLen; /* length in bytes */
|
||||||
|
void* heap;
|
||||||
|
|
||||||
#ifdef WC_C_DYNAMIC_FALLBACK
|
#ifdef WC_C_DYNAMIC_FALLBACK
|
||||||
int sha_method;
|
int sha_method;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
void* heap;
|
|
||||||
#ifdef WOLFSSL_PIC32MZ_HASH
|
#ifdef WOLFSSL_PIC32MZ_HASH
|
||||||
hashUpdCache cache; /* cache for updates */
|
hashUpdCache cache; /* cache for updates */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -144,7 +144,6 @@ struct wc_Sha512 {
|
||||||
cy_stc_crypto_sha_state_t hash_state;
|
cy_stc_crypto_sha_state_t hash_state;
|
||||||
cy_en_crypto_sha_mode_t sha_mode;
|
cy_en_crypto_sha_mode_t sha_mode;
|
||||||
cy_stc_crypto_v2_sha512_buffers_t sha_buffers;
|
cy_stc_crypto_v2_sha512_buffers_t sha_buffers;
|
||||||
void* heap;
|
|
||||||
#else
|
#else
|
||||||
word64 digest[WC_SHA512_DIGEST_SIZE / sizeof(word64)];
|
word64 digest[WC_SHA512_DIGEST_SIZE / sizeof(word64)];
|
||||||
word64 buffer[WC_SHA512_BLOCK_SIZE / sizeof(word64)];
|
word64 buffer[WC_SHA512_BLOCK_SIZE / sizeof(word64)];
|
||||||
|
|
Loading…
Reference in New Issue