diff --git a/wolfcrypt/src/sp_arm32.c b/wolfcrypt/src/sp_arm32.c index 207a600a4..353a8c578 100644 --- a/wolfcrypt/src/sp_arm32.c +++ b/wolfcrypt/src/sp_arm32.c @@ -71090,7 +71090,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 32]; + sp_digit t[6 * 2 * 32]; #endif int err = MP_OKAY; @@ -71114,7 +71114,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 32, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 32, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_arm64.c b/wolfcrypt/src/sp_arm64.c index 9b63937a0..0b0c2d1e2 100644 --- a/wolfcrypt/src/sp_arm64.c +++ b/wolfcrypt/src/sp_arm64.c @@ -120332,7 +120332,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 16]; + sp_digit t[6 * 2 * 16]; #endif int err = MP_OKAY; @@ -120356,7 +120356,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 16, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 16, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_armthumb.c b/wolfcrypt/src/sp_armthumb.c index a490dd471..dd044910a 100644 --- a/wolfcrypt/src/sp_armthumb.c +++ b/wolfcrypt/src/sp_armthumb.c @@ -213621,7 +213621,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 32]; + sp_digit t[6 * 2 * 32]; #endif int err = MP_OKAY; @@ -213645,7 +213645,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 32, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 32, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_c32.c b/wolfcrypt/src/sp_c32.c index 8929072fb..db8fc1b89 100644 --- a/wolfcrypt/src/sp_c32.c +++ b/wolfcrypt/src/sp_c32.c @@ -50800,7 +50800,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 42]; + sp_digit t[6 * 2 * 42]; #endif int err = MP_OKAY; @@ -50824,7 +50824,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 42, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 42, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_c64.c b/wolfcrypt/src/sp_c64.c index e7c618c31..80bb50dc2 100644 --- a/wolfcrypt/src/sp_c64.c +++ b/wolfcrypt/src/sp_c64.c @@ -50164,7 +50164,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 18]; + sp_digit t[6 * 2 * 18]; #endif int err = MP_OKAY; @@ -50188,7 +50188,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 18, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 18, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_cortexm.c b/wolfcrypt/src/sp_cortexm.c index aefbde83d..8a883bcbe 100644 --- a/wolfcrypt/src/sp_cortexm.c +++ b/wolfcrypt/src/sp_cortexm.c @@ -49213,7 +49213,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 32]; + sp_digit t[6 * 2 * 32]; #endif int err = MP_OKAY; @@ -49237,7 +49237,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 32, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 32, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E; diff --git a/wolfcrypt/src/sp_x86_64.c b/wolfcrypt/src/sp_x86_64.c index 8eb40ef6e..97a398d19 100644 --- a/wolfcrypt/src/sp_x86_64.c +++ b/wolfcrypt/src/sp_x86_64.c @@ -98168,7 +98168,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, sp_digit* t = NULL; #else sp_point_1024 point[1]; - sp_digit t[5 * 2 * 16]; + sp_digit t[6 * 2 * 16]; #endif int err = MP_OKAY; #ifdef HAVE_INTEL_AVX2 @@ -98195,7 +98195,7 @@ int sp_ecc_gen_table_1024(const ecc_point* gm, byte* table, word32* len, err = MEMORY_E; } if (err == MP_OKAY) { - t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 5 * 2 * 16, heap, + t = (sp_digit*)XMALLOC(sizeof(sp_digit) * 6 * 2 * 16, heap, DYNAMIC_TYPE_ECC); if (t == NULL) err = MEMORY_E;