Home
last modified time | relevance | path

Searched refs:global_data (Results 1 – 3 of 3) sorted by relevance

/mbedtls-3.6.0/library/
Dpsa_crypto_slot_management.c32 static psa_global_data_t global_data; variable
92 slot = &global_data.key_slots[key_id - PSA_KEY_ID_VOLATILE_MIN]; in psa_get_and_lock_key_slot_in_memory()
110 slot = &global_data.key_slots[slot_idx]; in psa_get_and_lock_key_slot_in_memory()
134 global_data.key_slots_initialized = 1; in psa_initialize_key_slots()
143 psa_key_slot_t *slot = &global_data.key_slots[slot_idx]; in psa_wipe_all_key_slots()
147 global_data.key_slots_initialized = 0; in psa_wipe_all_key_slots()
157 if (!global_data.key_slots_initialized) { in psa_get_empty_key_slot()
164 psa_key_slot_t *slot = &global_data.key_slots[slot_idx]; in psa_get_empty_key_slot()
198 ((psa_key_id_t) (selected_slot - global_data.key_slots)); in psa_get_empty_key_slot()
333 if (!global_data.key_slots_initialized) { in psa_get_and_lock_key_slot()
[all …]
Dpsa_crypto.c107 static psa_global_data_t global_data; variable
111 &global_data.rng.drbg;
115 if (global_data.initialized == 0) \
7200 psa_status_t status = mbedtls_psa_external_get_random(&global_data.rng,
7269 if (global_data.initialized) {
7488 if (global_data.rng_state != RNG_NOT_INITIALIZED) {
7491 global_data.rng.entropy_init = entropy_init;
7492 global_data.rng.entropy_free = entropy_free;
7500 if (global_data.rng_state != RNG_NOT_INITIALIZED) {
7501 mbedtls_psa_random_free(&global_data.rng);
[all …]
/mbedtls-3.6.0/docs/architecture/
Dpsa-thread-safety.md87 * `psa_crypto_slot_management::global_data.key_slots[i]`: see [“Key slots”](#key-slots).
89 * `psa_crypto_slot_management::global_data.key_slots_initialized`:
95 * `psa_crypto::global_data.rng`: depends on the RNG implementation. See [“Random generator”](#rando…
101 * `psa_crypto::global_data.{initialized,rng_state}`: these are bit-fields and cannot be modified in…