Merge pull request #8682 from SparkiDev/sp_ecc_non_block_aligned

ECC non-blocking: make sp_ecc_ctx data aligned
This commit is contained in:
David Garske
2025-04-16 20:17:33 -07:00
committed by GitHub

View File

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