:orphan: .. title:: CONFIG_MBEDTLS_HEAP_SIZE .. kconfig:: CONFIG_MBEDTLS_HEAP_SIZE CONFIG_MBEDTLS_HEAP_SIZE ######################## *Heap size for mbed TLS* *Heap size for mbed TLS* Type: ``int`` Help ==== .. code-block:: none 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. Help ==== .. code-block:: none 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 =================== (\ :kconfig:`MBEDTLS_ENABLE_HEAP ` && \ :kconfig:`MBEDTLS `) || (\ :kconfig:`MBEDTLS_ENABLE_HEAP ` && \ :kconfig:`MBEDTLS ` && 0) *(Includes any dependencies from ifs and menus.)* Defaults ======== - 10240 if \ :kconfig:`OPENTHREAD_COMMISSIONER ` || \ :kconfig:`OPENTHREAD_JOINER ` - 512 - 10240 if \ :kconfig:`OPENTHREAD_COMMISSIONER ` || \ :kconfig:`OPENTHREAD_JOINER ` - 512 Kconfig definitions =================== At ``/mbedtls/Kconfig:138`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:33`` → ``/Kconfig:6`` → ``/kconfig/Kconfig.modules:26`` Menu path: (Top) → Modules → mbedtls (/home/runner/work/bridle/bridle/workspace/modules/crypto/mbedtls) → mbed TLS Support → Enable global heap for mbed TLS .. code-block:: kconfig config MBEDTLS_HEAP_SIZE int "Heap size for mbed TLS" default 10240 if OPENTHREAD_COMMISSIONER || OPENTHREAD_JOINER default 512 depends on MBEDTLS_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. ---- At ``/mbedtls/Kconfig:138`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:33`` → ``/Kconfig:74`` Menu path: (Top) → Modules → mbed TLS Support → Enable global heap for mbed TLS .. code-block:: kconfig config MBEDTLS_HEAP_SIZE int "Heap size for mbed TLS" default 10240 if OPENTHREAD_COMMISSIONER || OPENTHREAD_JOINER default 512 depends on MBEDTLS_ENABLE_HEAP && MBEDTLS && 0 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. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*