zephyr/modules/mbedtls
Valerio Setti 11920e35a0 mbedtls: reduce heap usage when building PSA crypto
By default PSA crypto library copies all the buffers that are passed
in into the heap before further processing them. This is required
when the PSA crypto library is on the secure side and it accepts
buffers from a non-secure code. However this case in Zephyr
is already handled by TF-M, so when the PSA crypto library is
built (CONFIG_MBEDTLS_PSA_CRYPTO_C) then it will be on the
non-secure side. Therefore this malloc copy is useless and
it consumes heap memory. Setting MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS
at Mbed TLS build time helps in removing this mechanism and
it saves heap memory.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-05-23 09:03:20 -07:00
..
configs mbedtls: reduce heap usage when building PSA crypto 2024-05-23 09:03:20 -07:00
include mbedtls: add CONFIG_MBEDTLS_INIT 2023-07-06 11:45:08 +02:00
CMakeLists.txt mbedtls: add new source file from MbedTLS 3.6 release 2024-05-23 11:53:02 -04:00
create_psa_files.py mbedtls: add new PSA_CRYPTO_CLIENT config 2024-05-23 11:53:02 -04:00
debug.c
Kconfig mbedtls: add Kconfig option for PSA_WANT_ALG_SHA_256 2024-05-08 22:14:19 -07:00
Kconfig.psa mbedtls: add new PSA_CRYPTO_CLIENT config 2024-05-23 11:53:02 -04:00
Kconfig.tls-generic bluetooth: mesh: update BT_MESH_USES_MBEDTLS_PSA selected symbols 2024-05-23 11:53:02 -04:00
shell.c
zephyr_init.c mbedtls: add option to use CSPRNG as random source for PSA_CRYPTO_C 2024-05-09 10:27:30 +02:00