forked from wolfSSL/wolfssl
ECC non-blocking: make sp_ecc_ctx data aligned
Align data on 4 byte boundary for ARM chips.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user