1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-03 20:33:16 +03:00
Files
mbedtls/library
Manuel Pégourié-Gonnard c334f41bf9 Skip redundant checks for NULL f_rng
Unless MBEDTLS_ECP_NO_INTERNAL_RNG is defined, it's no longer possible for
f_rng to be NULL at the places that randomize coordinates.

Eliminate the NULL check in this case:
- it makes it clearer to reviewers that randomization always happens (unless
  the user opted out at compile time)
- a NULL check in a place where it's easy to prove the value is never NULL
  might upset or confuse static analyzers (including humans)
- removing the check saves a bit of code size

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2020-06-16 10:52:36 +02:00
..
2019-02-11 21:13:33 +00:00
2020-06-09 11:31:30 +02:00
2019-04-24 10:51:54 +02:00
2019-07-10 18:35:10 +03:00
2019-04-24 10:51:54 +02:00
2018-07-23 18:18:32 +01:00
2020-04-08 17:17:27 +01:00
2019-04-24 10:51:54 +02:00
2019-07-08 15:44:18 +02:00
2019-04-24 10:51:54 +02:00
2020-06-16 10:52:36 +02:00
2018-11-06 13:12:47 +00:00
2019-04-24 10:51:54 +02:00
2020-02-18 10:49:06 +01:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2017-10-29 17:53:52 +02:00
2019-06-20 16:33:02 +01:00
2018-10-07 17:48:37 +01:00