Skip to content

Commit 393bf4a

Browse files
committed
wolfssl/openssl/sha3.h: use sizeof(struct wc_Sha3) only ifdef WOLFSSL_SHA3.
1 parent 7260cc1 commit 393bf4a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfssl/openssl/sha3.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
* to Sha3 is expected to also be 16 byte aligned addresses. */
4343
struct WOLFSSL_SHA3_CTX {
4444
/* big enough to hold wolfcrypt Sha3, but check on init */
45+
#ifdef WOLFSSL_SHA3
4546
ALIGN16 void* holder[sizeof(struct wc_Sha3)];
47+
#else
48+
ALIGN16 void* holder[(424 + WC_ASYNC_DEV_SIZE) / sizeof(void*)];
49+
#endif
4650
};
4751

4852
#ifndef WOLFSSL_NOSHA3_224

0 commit comments

Comments
 (0)