mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add comments about RNG mutex requirements
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
@ -7145,6 +7145,9 @@ exit:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Initialize the PSA random generator.
|
/** Initialize the PSA random generator.
|
||||||
|
*
|
||||||
|
* Note: the mbedtls_threading_psa_rngdata_mutex should be held when calling
|
||||||
|
* this function if mutexes are enabled.
|
||||||
*/
|
*/
|
||||||
static void mbedtls_psa_random_init(mbedtls_psa_random_context_t *rng)
|
static void mbedtls_psa_random_init(mbedtls_psa_random_context_t *rng)
|
||||||
{
|
{
|
||||||
@ -7177,6 +7180,9 @@ static void mbedtls_psa_random_init(mbedtls_psa_random_context_t *rng)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Deinitialize the PSA random generator.
|
/** Deinitialize the PSA random generator.
|
||||||
|
*
|
||||||
|
* Note: the mbedtls_threading_psa_rngdata_mutex should be held when calling
|
||||||
|
* this function if mutexes are enabled.
|
||||||
*/
|
*/
|
||||||
static void mbedtls_psa_random_free(mbedtls_psa_random_context_t *rng)
|
static void mbedtls_psa_random_free(mbedtls_psa_random_context_t *rng)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user