Skip to content

Commit 600b3ba

Browse files
committed
add missing RSA stack size options
1 parent f0149f6 commit 600b3ba

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

options.mk

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,14 @@ ifeq ($(SIGN),RSAPSS2048)
319319
STACK_USAGE=4096
320320
endif
321321
else
322-
ifneq ($(SPMATH),1)
323-
STACK_USAGE=35952
322+
ifeq ($(WOLFTPM),1)
323+
STACK_USAGE=$(STACK_USAGE_WOLFTPM)
324324
else
325-
STACK_USAGE=17568
325+
ifneq ($(SPMATH),1)
326+
STACK_USAGE=35952
327+
else
328+
STACK_USAGE=17568
329+
endif
326330
endif
327331
endif
328332
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 512; echo $$?),0)
@@ -344,10 +348,14 @@ ifeq ($(SIGN),RSAPSS3072)
344348
STACK_USAGE=4364
345349
endif
346350
else
347-
ifneq ($(SPMATH),1)
348-
STACK_USAGE=52592
351+
ifeq ($(WOLFTPM),1)
352+
STACK_USAGE=$(STACK_USAGE_WOLFTPM)
349353
else
350-
STACK_USAGE=12288
354+
ifneq ($(SPMATH),1)
355+
STACK_USAGE=52592
356+
else
357+
STACK_USAGE=12288
358+
endif
351359
endif
352360
endif
353361
ifneq ($(HASH),SHA256)
@@ -374,10 +382,14 @@ ifeq ($(SIGN),RSAPSS4096)
374382
STACK_USAGE=5768
375383
endif
376384
else
377-
ifneq ($(SPMATH),1)
378-
STACK_USAGE=69232
385+
ifeq ($(WOLFTPM),1)
386+
STACK_USAGE=$(STACK_USAGE_WOLFTPM)
379387
else
380-
STACK_USAGE=18064
388+
ifneq ($(SPMATH),1)
389+
STACK_USAGE=69232
390+
else
391+
STACK_USAGE=18064
392+
endif
381393
endif
382394
endif
383395
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 1024; echo $$?),0)

0 commit comments

Comments
 (0)