[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:
kangping
2020-12-21 10:55:11 -08:00
committed by GitHub
parent fe98fdc2d1
commit 22570e5a5b
@@ -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