1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-21 16:05:46 +08:00
Manuel Pégourié-Gonnard f035904060 Check for mandatory RNG parameters in RSA private
(This commit is best reviewed using `git show -b` as indentation levels
have changed.)

The documentation already states that the RNG parameter is mandatory,
since PRs #4488 and #4515. There are several families of functions to
consider here:

- private-key operations (sign, decrypt) all call
mbedtls_rsa_private() where this commit adds a non-NULL check;
- encrypt operations need an RNG for masking/padding and already had a
non-NULL check since #4515 (conditional on \p mode before that)
- verify operations no longer take an RNG parameter since #4515

So, after this commit, all RSA functions that accept an RNG will reach a
non-NULL check before the RNG is used.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2021-06-17 09:37:55 +02:00
..
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-05-25 09:23:10 +02:00
2021-03-04 14:34:50 +00:00
2021-03-10 12:52:37 +00:00
2021-05-27 14:39:53 +02:00
2021-06-08 16:45:41 +02:00
2021-06-01 10:02:13 +08:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-03-10 12:52:37 +00:00
2021-06-08 16:45:41 +02:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-05-13 11:19:01 +02:00
2021-06-08 16:45:41 +02:00
2021-05-27 14:40:40 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00
2021-06-08 16:45:41 +02:00