mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 02:24:18 +01:00
ae3741e8a4
mbedtls_rsa_private() could return the sum of two RSA error codes instead of a valid error code in some rare circumstances: * If rsa_prepare_blinding() returned MBEDTLS_ERR_RSA_RNG_FAILED (indicating a misbehaving or misconfigured RNG). * If the comparison with the public value failed (typically indicating a glitch attack). Make sure not to add two high-level error codes. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
3 lines
78 B
Plaintext
3 lines
78 B
Plaintext
Bugfix
|
|
* Fix an incorrect error code if an RSA private operation glitched.
|