mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-06 22:24:42 +02:00
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:
@@ -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