forked from OP-TEE/optee_os
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. 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] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
- Loading branch information
1 parent
afd7e60
commit 8a52564
Showing
1 changed file
with
254 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters