Skip to content

Commit 301080a

Browse files
dgarskedanielinux
authored andcommitted
Reverted change for H5 heap (not needed). Tracked issue down to a missing malloc fixed here: wolfSSL/wolfssl#9305
1 parent 2df3768 commit 301080a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

include/user_settings.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,17 @@ extern int tolower(int c);
232232
# define WOLFSSL_SP_NO_3072
233233
# define WOLFSSL_SP_NO_4096
234234
# define WOLFSSL_SP_2048
235+
# define RSA_MIN_SIZE 2048
236+
# define RSA_MAX_SIZE 2048
235237
# endif
236238
# if defined(WOLFBOOT_SIGN_RSA3072) || defined(WOLFBOOT_SIGN_SECONDARY_RSA3072)
237239
# define FP_MAX_BITS (3072 * 2)
238240
# define SP_INT_BITS 3072
239241
# define WOLFSSL_SP_NO_2048
240242
# define WOLFSSL_SP_NO_4096
241243
# define WOLFSSL_SP_3072
244+
# define RSA_MIN_SIZE 3072
245+
# define RSA_MAX_SIZE 3072
242246
# endif
243247

244248
# if defined(WOLFBOOT_SIGN_RSA4096) || defined(WOLFBOOT_SIGN_SECONDARY_RSA4096)
@@ -247,6 +251,8 @@ extern int tolower(int c);
247251
# define WOLFSSL_SP_NO_2048
248252
# define WOLFSSL_SP_NO_3072
249253
# define WOLFSSL_SP_4096
254+
# define RSA_MIN_SIZE 4096
255+
# define RSA_MAX_SIZE 4096
250256
# endif
251257
# ifdef WOLFCRYPT_SECURE_MODE
252258
# undef FP_MAX_BITS
@@ -255,6 +261,8 @@ extern int tolower(int c);
255261
# define WOLFSSL_SP_2048
256262
# define WOLFSSL_SP_3072
257263
# define WOLFSSL_SP_4096
264+
# define RSA_MIN_SIZE 2048
265+
# define RSA_MAX_SIZE 4096
258266
# endif
259267
#else
260268
# define NO_RSA

test-app/ARM-stm32h5-ns.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ SECTIONS
5050
}
5151

5252
PROVIDE(_start_heap = _end);
53-
PROVIDE(_heap_size = 8K);
53+
PROVIDE(_heap_size = 4K);
5454
PROVIDE(_end_stack = ORIGIN(RAM) + LENGTH(RAM));

test-app/ARM-stm32h5.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ SECTIONS
5050
}
5151

5252
PROVIDE(_start_heap = _end);
53-
PROVIDE(_heap_size = 8K);
53+
PROVIDE(_heap_size = 4K);
5454
PROVIDE(_end_stack = ORIGIN(RAM) + LENGTH(RAM));

0 commit comments

Comments
 (0)