Searched hist:"06 de6080fba5890357f9075b37caf940cc8eb93f" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | rsa.c | 06de6080fba5890357f9075b37caf940cc8eb93f Fri Apr 01 15:45:56 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> libmbedtls: add fault mitigation in mbedtls_rsa_rsassa_pkcs1_v15_verify()
Adds fault mitigation in mbedtls_rsa_rsassa_pkcs1_v15_verify() by using the macro FTMN_CALLEE_DONE_MEMCMP() instead of just mbedtls_safer_memcmp() when checking that the hash in the RSA signature is matching the expected value.
FTMN_CALLEE_DONE_MEMCMP() saves on success the result in a thread local storage if fault mitigations was enabled when the function was called.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|