Lines Matching refs:mutex
11 …- Key slots are protected by a global mutex, as described in [Key store consistency and abstractio…
78 …SA functions from a single thread, or which protect all PSA calls using a mutex, are not affected …
123 …mutex operation fails, which only happens if the mutex implementation fails, the error code `PSA_E…
139 We have added a mutex `mbedtls_threading_psa_globaldata_mutex` defined in `include/mbedtls/threadin…
143 …ldata_mutex`. The RNG fields within this struct are not protected by this mutex, and are not alway…
144 …escribed in [Key slots](#key-slots), `key_slots_initialized` is protected by the global data mutex.
148 …a thread attempts to lock a mutex while already holding it. Functions which need to be called whil…
150 …ticular, they must not start expensive operations (eg. doing cryptography) while holding the mutex.
184 The key store is protected by a single global mutex `mbedtls_threading_key_slot_mutex`.
186 …hile the mutex is held; there is a convenience function `psa_unregister_read_under_mutex` which wr…
188 …mutex`, the set of keys within the key store which the thread holding the mutex can access is equi…
196 ##### Locking and unlocking the mutex
200 …brary/psa_crypto_core.h` to capture the common pattern of (un)locking the mutex and returning or j…
207 …een found then the slot id is set. This second step is not done under the mutex, at this point the…
208 …mutex), the thread calls `psa_finish_key_creation`. This function takes the mutex, checks that the…
209 … key creation stage, this clean-up function takes the mutex, wipes the slot, and releases the mute…
213 …back into the reserved slot. This entire sequence is done during a single mutex lock, which is nec…
222 …a separate buffer to be used by the operation. This step is not performed under the key slot mutex.
243 …mutex unlock within `psa_finish_key_creation`; it is at this point that the key becomes visible to…
244 * `psa_destroy_key` - The linearization point for a successful destruction is the mutex unlock, the…
245 * `psa_purge_key`, `psa_close_key` - The linearization point is the mutex unlock after wiping the s…
246 * One shot operations - The linearization point is the final unlock of the mutex within `psa_get_an…
247 … linearization point of the key input function is the final unlock of the mutex within `psa_get_an…
283 …hat run in parallel, deriving the key and copying it key into the slot is not done under any mutex.
296 … not performed under any global mutex. One-shot operations and multi-part operations will each onl…
333 …library then operations will require a status field protected by a global mutex. On entry, API cal…
346 2. The core doesn't hold the driver mutex between calls to entry points.