monocypher: increase stack requirements to 4096B

This commit is contained in:
Koen Zandberg 2018-09-15 15:59:00 +02:00
parent 0c1a207bf9
commit 90f2f867d2
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B
2 changed files with 4 additions and 4 deletions

View File

@ -16,14 +16,14 @@
* *
* @note Monocypher only supports 32bit platforms. * @note Monocypher only supports 32bit platforms.
* *
* Monocypher requires around 3K of stack space depending slightly on the * Monocypher requires around 4K of stack space depending slightly on the
* platform, so beware that you're allocating at * platform, so beware that you're allocating at
* least `THREAD_STACKSIZE_DEFAULT + 3072` bytes. * least `THREAD_STACKSIZE_DEFAULT + 4096` bytes.
* *
* You can do it easily by adding: * You can do it easily by adding:
* *
* ```makefile * ```makefile
* CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 3072)' * CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 4096)'
* ``` * ```
* *
* to your makefile. * to your makefile.

View File

@ -8,7 +8,7 @@ BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6
# required for Monocypher (as described in the package documentation) # required for Monocypher (as described in the package documentation)
CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(3072 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)" CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(4096 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)"
USEMODULE += embunit USEMODULE += embunit
USEMODULE += random USEMODULE += random