Home
last modified time | relevance | path

Searched hist:"5 c6035661f290e4a3c388557a753cce105f74a13" (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum.c5c6035661f290e4a3c388557a753cce105f74a13 Thu Dec 12 10:56:46 UTC 2024 Jens Wiklander <jens.wiklander@linaro.org> libmbedtls: use mempool_calloc() for temporary memory

mbedtls_mpi_exp_mod_optionally_safe() needs a large chunk of temporary
memory for the mbedtls_mpi_core_exp_mod() function. The amount of memory
is too much to reliably allocate from the heap. So use mempool_calloc()
instead of mbedtls_calloc(), similar to using mbedtls_mpi_init_mempool()
instead of mbedtls_mpi_init().

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>