wolfssl/openssl/sha3.h: use sizeof(struct wc_Sha3) only ifdef WOLFSSL_SHA3.

pull/7481/head
Daniel Pouzzner 2024-04-27 13:17:01 -05:00
parent 7260cc124c
commit 393bf4a8e2
1 changed files with 4 additions and 0 deletions

View File

@ -42,7 +42,11 @@
* to Sha3 is expected to also be 16 byte aligned addresses. */
struct WOLFSSL_SHA3_CTX {
/* big enough to hold wolfcrypt Sha3, but check on init */
#ifdef WOLFSSL_SHA3
ALIGN16 void* holder[sizeof(struct wc_Sha3)];
#else
ALIGN16 void* holder[(424 + WC_ASYNC_DEV_SIZE) / sizeof(void*)];
#endif
};
#ifndef WOLFSSL_NOSHA3_224