-
CONFIG_MBEDTLS_HEAP_SIZE
¶
Heap size for mbed TLS
Type: int
Help¶
The mbedtls routines will use this heap if enabled. See ext/lib/crypto/mbedtls/include/mbedtls/config.h and MBEDTLS_MEMORY_BUFFER_ALLOC_C option for details. That option is not enabled by default. Default value for the heap size is not set as it depends on the application. For streaming communication with arbitrary (HTTPS) servers on the Internet, 32KB + overheads (up to another 20KB) may be needed. For some dedicated and specific usage of mbedtls API, the 1000 bytes might be ok.
Direct dependencies¶
MBEDTLS_ENABLE_HEAP
&& MBEDTLS
(Includes any dependencies from if’s and menus.)
Defaults¶
- 512 if
MBEDTLS_ENABLE_HEAP
&&MBEDTLS
Kconfig definition¶
At ext/lib/crypto/mbedtls/Kconfig:125
Included via Kconfig:10
→ Kconfig.zephyr:41
→ ext/Kconfig:13
→ ext/lib/crypto/Kconfig:10
Menu path: (top menu) → External Sources → Cryptography → mbedTLS Support
config MBEDTLS_HEAP_SIZE int prompt "Heap size for mbed TLS" ifMBEDTLS_ENABLE_HEAP
&&MBEDTLS
default 512 ifMBEDTLS_ENABLE_HEAP
&&MBEDTLS
depends onMBEDTLS_ENABLE_HEAP
&&MBEDTLS
help The mbedtls routines will use this heap if enabled. See ext/lib/crypto/mbedtls/include/mbedtls/config.h and MBEDTLS_MEMORY_BUFFER_ALLOC_C option for details. That option is not enabled by default. Default value for the heap size is not set as it depends on the application. For streaming communication with arbitrary (HTTPS) servers on the Internet, 32KB + overheads (up to another 20KB) may be needed. For some dedicated and specific usage of mbedtls API, the 1000 bytes might be ok.
(Definitions include propagated dependencies, including from if’s and menus.)