commit | d5572fade85243514566f02a1d82e15defdf3191 | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Mon May 27 16:42:58 2019 +0200 |
committer | Joakim Bech <joakim.bech@linaro.org> | Tue May 28 12:58:23 2019 +0200 |
tree | 73c81dbd65cebf949a5be00bc14d406489e93fe1 | |
parent | 68df6eb0f2568e39175fc3a3c7ccbbf00e742b31 [diff] |
libmbedtls: mbedtls_mpi_exp_mod(): optimize mempool usage With W allocated in the mempool instead of the stack it is more important to utilize the mempool in a stack like way. With this patch allocation and initialization of W is moved to a point where all following mempool allocations are free before the function returns. This reduces maximum memory consumption of mempool in regression case 8101 for an AArch64 TA in from 17280 to 7640 bytes. Figures for an AArch32 TA are 12040 to 5288 bytes. Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers