Skip to content

Commit ba1309f

Browse files
committed
Fixed allocation size in RSA4096
1 parent 59f6851 commit ba1309f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/xmalloc_rsa.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@
2626
#include <stdint.h>
2727

2828
/* Allow one single sp_point to be allocated at one time */
29+
#ifdef WOLFBOOT_SIGN_RSA2048
2930
#define SP_DIGIT_SIZE (1280)
31+
#endif
32+
33+
#ifdef WOLFBOOT_SIGN_RSA4096
34+
#define SP_DIGIT_SIZE (3192)
35+
#endif
36+
3037
static uint8_t sp_digit[SP_DIGIT_SIZE];
3138
static int sp_digit_in_use = 0;
3239

0 commit comments

Comments
 (0)