Skip to content

Commit

Permalink
New ECC curve spec size (fixes SMALL_STACK + ECC)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Oct 11, 2024
1 parent 6cfa152 commit e2c5377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct xmalloc_slot {
/* SP MATH */
#ifdef WOLFBOOT_SIGN_ECC256
#define MP_SCHEME "SP ECC256"
#define MP_CURVE_SPECS_SIZE (76)
#define MP_CURVE_SPECS_SIZE (72)
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
#define MP_POINT_SIZE (196)
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 8)
Expand All @@ -85,7 +85,7 @@ struct xmalloc_slot {
#endif /* WOLFBOOT_SIGN_ECC256 */
#ifdef WOLFBOOT_SIGN_ECC384
#define MP_SCHEME "SP ECC384"
#define MP_CURVE_SPECS_SIZE (108)
#define MP_CURVE_SPECS_SIZE (104)
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
#define MP_POINT_SIZE (292)
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 12)
Expand All @@ -101,7 +101,7 @@ struct xmalloc_slot {
#endif /* WOLFBOOT_SIGN_ECC384 */
#ifdef WOLFBOOT_SIGN_ECC521
#define MP_SCHEME "SP ECC521"
#define MP_CURVE_SPECS_SIZE (148)
#define MP_CURVE_SPECS_SIZE (144)
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
#define MP_POINT_SIZE (412)
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 17)
Expand Down

0 comments on commit e2c5377

Please sign in to comment.