Gilles Peskine
3b7523e11e
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 20:55:34 +01:00
..
2015-06-25 10:59:56 +02:00
2020-11-09 20:44:12 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-08 21:00:17 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-11-06 15:26:52 +01:00
2020-08-19 16:37:36 +02:00
2020-11-28 12:14:57 -03:00
2020-12-09 01:21:50 +00:00
2020-12-03 13:30:36 -08:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-25 10:58:15 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-07 13:06:42 +01:00
2020-08-19 16:37:36 +02:00
2020-10-01 17:17:37 +02:00
2020-08-19 16:37:36 +02:00
2020-11-16 13:07:51 +01:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-03 13:30:36 -08:00
2019-02-18 14:50:57 +00:00
2020-09-09 15:17:11 +02:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-12-07 16:47:02 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-09 15:17:11 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-22 16:22:27 +02:00
2020-08-19 16:37:36 +02:00
2020-11-13 09:17:16 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2021-01-06 20:55:34 +01:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-09-09 15:18:05 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-11-18 13:54:38 +01:00
2020-08-19 16:37:36 +02:00
2020-11-28 14:59:56 -03:00
2020-11-13 09:17:16 +00:00
2020-08-19 16:37:36 +02:00
2020-08-25 11:26:37 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-25 10:58:15 +02:00
2020-12-08 21:00:17 +00:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00
2020-08-19 16:37:36 +02:00