Gilles Peskine 5894e8e7a4 Replace mbedtls_psa_random_state( ... ) by MBEDTLS_PSA_RANDOM_STATE
Hide the obtention of the pointer to the RNG state behind a macro.

To make it possible to use this macro in a module other than
psa_crypto.c, which will happen in the future, make sure that the
definition of the macro does not reference internal variables of
psa_crypto.c. For this purpose, in the internal-DRBG case, export a
symbol containing the address of the DRBG state.

When the RNG state is a pointer a DRBG state, just keep this pointer
in a variable: there's no need to store a pointer to a larger structure.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-12-14 14:57:24 +01:00
..
2020-11-16 15:02:16 +01:00
2020-08-21 21:08:56 +02:00
2020-08-21 21:08:56 +02:00
2020-08-21 21:08:56 +02:00
2020-09-22 11:57:16 +02:00
2020-11-20 13:57:15 +01:00
2020-08-21 21:08:56 +02:00
2020-09-25 08:43:57 -05:00
2020-08-21 21:08:56 +02:00
2020-09-01 11:04:53 +02:00