commit | 0fc9291f405157f935e0001622f91b759ce44be6 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Wed Jun 05 17:20:51 2024 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Wed Jun 12 14:21:25 2024 +0200 |
tree | 6738abea153f01ad120b44ff4d429acc36304dc3 | |
parent | 0ef87b1e6b3da9bec120541d098d67c64d520ce2 [diff] |
libmbedtls: bignum: restore mbedtls_mpi_exp_mod() from v3.5.2 The implementation of mbedtls_mpi_exp_mod() in Mbed TLS v3.6.0 introduces a large performance regression in "xtest 4011" on QEMUv7 (32-bit). One iteration of the test used to take 1.4 second on my machine but the newer implementation now needs 23 seconds. To make matters worse, xtest 4011 runs ten iterations so in reality it is 14 seconds vs. almost 4 minutes for the whole test. Revert mbedtls_mpi_exp_mod() to the v3.5.2 implementation to gain the performance back. The upstream commit that changed the algorithm is [2]. Note that some mpi_* static functions have been made non static and renamed mbedtls_mpi_* in the current Mbed TLS so the code from v3.5.2 is modified accordingly. Link: https://optee.readthedocs.io/en/latest/building/devices/qemu.html#qemu-v7 [1] Link: https://github.com/Mbed-TLS/mbedtls/commit/1ba40585f9446372f69f19693c20f593283930af [2] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-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