Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmbedtls: use mempool_calloc() for temporary memory
mbedtls_mpi_exp_mod_optionally_safe() need a large chunk of temporary memory for the mbedtls_mpi_core_exp_mod() function. The amount of memory is too much to 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 <[email protected]>
- Loading branch information