Gilles Peskine ae3741e8a4 Fix an incorrect error code if RSA private operation glitched
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>
2021-01-06 18:22:40 +01:00
..
2020-12-09 15:05:22 +00:00
2020-11-16 15:02:16 +01:00
2020-12-09 15:05:22 +00:00
2020-09-22 11:57:16 +02:00
2020-11-20 13:57:15 +01:00
2020-11-13 09:20:18 +00:00
2020-09-01 11:04:53 +02:00