Home
last modified time | relevance | path

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

/openthread-latest/third_party/mbedtls/repo/library/
Dpsa_crypto_slot_management.c35 static psa_global_data_t global_data; variable
45 initialized = global_data.key_slots_initialized; in psa_get_key_slots_initialized()
115 slot = &global_data.key_slots[key_id - PSA_KEY_ID_VOLATILE_MIN]; in psa_get_and_lock_key_slot_in_memory()
131 slot = &global_data.key_slots[slot_idx]; in psa_get_and_lock_key_slot_in_memory()
159 global_data.key_slots_initialized = 1; in psa_initialize_key_slots()
168 psa_key_slot_t *slot = &global_data.key_slots[slot_idx]; in psa_wipe_all_key_slots()
174 global_data.key_slots_initialized = 0; in psa_wipe_all_key_slots()
191 psa_key_slot_t *slot = &global_data.key_slots[slot_idx]; in psa_reserve_free_key_slot()
230 ((psa_key_id_t) (selected_slot - global_data.key_slots)); in psa_reserve_free_key_slot()
657 const psa_key_slot_t *slot = &global_data.key_slots[slot_idx]; in mbedtls_psa_get_stats()
Dpsa_crypto.c121 static psa_global_data_t global_data; variable
131 initialized = global_data.rng_state == RNG_SEEDED; in psa_get_initialized()
142 (initialized && (global_data.initialized == PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED)); in psa_get_initialized()
159 initialized = (global_data.initialized & PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED) != 0; in psa_get_drivers_initialized()
4209 status = mbedtls_psa_external_get_random(&global_data.rng, in psa_generate_random_internal()
4231 ret = mbedtls_ctr_drbg_random(&global_data.rng.drbg, output, request_size); in psa_generate_random_internal()
4233 ret = mbedtls_hmac_drbg_random(&global_data.rng.drbg, output, request_size); in psa_generate_random_internal()
8031 if (global_data.rng_state != RNG_NOT_INITIALIZED) { in mbedtls_psa_crypto_configure_entropy_sources()
8034 global_data.rng.entropy_init = entropy_init; in mbedtls_psa_crypto_configure_entropy_sources()
8035 global_data.rng.entropy_free = entropy_free; in mbedtls_psa_crypto_configure_entropy_sources()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_init.function147 /* Test getting global_data.rng_state. */
/openthread-latest/third_party/mbedtls/repo/docs/architecture/psa-thread-safety/
Dpsa-thread-safety.md13 - `global_data` variables in `psa_crypto.c` and `psa_crypto_slot_management.c` are now protected by…
25 …rent-strategy) section describes how thread-safety of key management and `global_data` is achieved.
141 There are two `psa_global_data_t` structs, each with a single instance `global_data`:
190 {mbedtls_svc_key_id_t k : (\exists slot := &global_data.key_slots[i]) [