-
CONFIG_MBEDTLS_SHA256_SMALLER
¶
Use SHA256 small footprint implementation
Type: bool
Help¶
Use a SHA-256 implementation with smaller footprint. Note, that this implementation will also have a lower performance. On a Cortex-M4 the size of mbedtls_sha256_process() will be reduced from ~2KB to ~0.5KB, however it will also perform around 30% slower. MBEDTLS_SHA256_SMALLER setting in mbed TLS config file.
Direct dependencies¶
NRF_SECURITY_ADVANCED
&& (VANILLA_MBEDTLS_SHA256_C
|| (MBEDTLS_SHA256_C
&& !NRF_CRYPTO_BACKEND_COMBINATION_0
)) && NRF_SECURITY_ADVANCED
&& MBEDTLS_VANILLA_BACKEND
&& NORDIC_SECURITY_BACKEND
(Includes any dependencies from ifs and menus.)
Defaults¶
No defaults. Implicitly defaults to n
.
Kconfig definition¶
At nrf_security/Kconfig:887
Included via /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrfxlib/Kconfig.nrfxlib:14
Menu path: (Top) → Nordic nrfxlib → Nordic Security → Use Nordic provided security backend → Advanced mbed TLS Configuration Settings
config MBEDTLS_SHA256_SMALLER bool "Use SHA256 small footprint implementation" depends onNRF_SECURITY_ADVANCED
&& (VANILLA_MBEDTLS_SHA256_C
|| (MBEDTLS_SHA256_C
&& !NRF_CRYPTO_BACKEND_COMBINATION_0
)) &&NRF_SECURITY_ADVANCED
&&MBEDTLS_VANILLA_BACKEND
&&NORDIC_SECURITY_BACKEND
help Use a SHA-256 implementation with smaller footprint. Note, that this implementation will also have a lower performance. On a Cortex-M4 the size of mbedtls_sha256_process() will be reduced from ~2KB to ~0.5KB, however it will also perform around 30% slower. MBEDTLS_SHA256_SMALLER setting in mbed TLS config file.
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)