mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #4993 from SparkiDev/sakke_gen_table_tmp_size_fix
SP: fix number of temps alloced in sp_ecc_gen_table
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user