Skip to content

Commit 4c7fb1f

Browse files
committed
ECC non-blocking: make sp_ecc_ctx data aligned
Align data on 4 byte boundary for ARM chips.
1 parent bfab68f commit 4c7fb1f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfssl/wolfcrypt/sp_int.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ extern "C" {
387387
/* Non-blocking ECC operation context. */
388388
typedef struct sp_ecc_ctx {
389389
#ifdef WOLFSSL_SP_521
390-
byte data[66*80]; /* stack data */
390+
XALIGNED(4) byte data[66*80]; /* stack data */
391391
#elif defined(WOLFSSL_SP_384)
392-
byte data[48*80]; /* stack data */
392+
XALIGNED(4) byte data[48*80]; /* stack data */
393393
#else
394-
byte data[32*80]; /* stack data */
394+
XALIGNED(4) byte data[32*80]; /* stack data */
395395
#endif
396396
} sp_ecc_ctx_t;
397397
#endif

0 commit comments

Comments
 (0)