ECC non-blocking: make sp_ecc_ctx data aligned

Align data on 4 byte boundary for ARM chips.
This commit is contained in:
Sean Parkinson
2025-04-17 10:07:58 +10:00
parent bfab68f40c
commit 4c7fb1f428

View File

@ -387,11 +387,11 @@ extern "C" {
/* Non-blocking ECC operation context. */
typedef struct sp_ecc_ctx {
#ifdef WOLFSSL_SP_521
byte data[66*80]; /* stack data */
XALIGNED(4) byte data[66*80]; /* stack data */
#elif defined(WOLFSSL_SP_384)
byte data[48*80]; /* stack data */
XALIGNED(4) byte data[48*80]; /* stack data */
#else
byte data[32*80]; /* stack data */
XALIGNED(4) byte data[32*80]; /* stack data */
#endif
} sp_ecc_ctx_t;
#endif