mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Merge pull request #8901 from paul-elliott-arm/make_psa_global_data_safe
Make PSA global_data thread safe
This commit is contained in:
@@ -112,6 +112,20 @@ extern mbedtls_threading_mutex_t mbedtls_threading_gmtime_mutex;
|
||||
* psa_key_slot_state_transition(), psa_register_read(), psa_unregister_read(),
|
||||
* psa_key_slot_has_readers() and psa_wipe_key_slot(). */
|
||||
extern mbedtls_threading_mutex_t mbedtls_threading_key_slot_mutex;
|
||||
|
||||
/*
|
||||
* A mutex used to make the non-rng PSA global_data struct members thread safe.
|
||||
*
|
||||
* This mutex must be held when reading or writing to any of the PSA global_data
|
||||
* structure members, other than the rng_state or rng struct. */
|
||||
extern mbedtls_threading_mutex_t mbedtls_threading_psa_globaldata_mutex;
|
||||
|
||||
/*
|
||||
* A mutex used to make the PSA global_data rng data thread safe.
|
||||
*
|
||||
* This mutex must be held when reading or writing to the PSA
|
||||
* global_data rng_state or rng struct members. */
|
||||
extern mbedtls_threading_mutex_t mbedtls_threading_psa_rngdata_mutex;
|
||||
#endif
|
||||
|
||||
#endif /* MBEDTLS_THREADING_C */
|
||||
|
Reference in New Issue
Block a user