mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
[heap] expand internal heap size for ECDSA (#5988)
The ECDSA feature needs more heap to run because buffers for signing and signature verification are dynamically allocated. The number 2600 is the minimum (not precise) size to pass the test_ecdsa unittest case. This is not revealed in CI tests because DTLS is enabled (and thus we have much larger heap) for unittest check.
This commit is contained in:
@@ -279,8 +279,12 @@
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE_NO_DTLS
|
||||
#if OPENTHREAD_CONFIG_ECDSA_ENABLE
|
||||
#define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE_NO_DTLS 2600
|
||||
#else
|
||||
#define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE_NO_DTLS 384
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user