Skip to content

Commit

Permalink
Move heap variable to all sha implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Oct 9, 2024
1 parent 06195a2 commit a3f6bab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/sha.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ struct wc_Sha {
#else
word32 digest[WC_SHA_DIGEST_SIZE / sizeof(word32)];
#endif
void* heap;
#endif
void* heap;
#ifdef WOLFSSL_PIC32MZ_HASH
hashUpdCache cache; /* cache for updates */
#endif
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/sha256.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ struct wc_Sha256 {
word32 buffLen; /* in bytes */
word32 loLen; /* length in bytes */
word32 hiLen; /* length in bytes */
void* heap;

#ifdef WC_C_DYNAMIC_FALLBACK
int sha_method;
#endif

#endif
void* heap;
#ifdef WOLFSSL_PIC32MZ_HASH
hashUpdCache cache; /* cache for updates */
#endif
Expand Down
1 change: 1 addition & 0 deletions wolfssl/wolfcrypt/sha512.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ struct wc_Sha512 {
cy_stc_crypto_sha_state_t hash_state;
cy_en_crypto_sha_mode_t sha_mode;
cy_stc_crypto_v2_sha512_buffers_t sha_buffers;
void* heap;
#else
word64 digest[WC_SHA512_DIGEST_SIZE / sizeof(word64)];
word64 buffer[WC_SHA512_BLOCK_SIZE / sizeof(word64)];
Expand Down

0 comments on commit a3f6bab

Please sign in to comment.