Searched refs:global_data (Results 1 – 4 of 4) sorted by relevance
193 static psa_global_data_t global_data; variable203 initialized = global_data.key_slots_initialized; in psa_get_key_slots_initialized()283 psa_key_slot_t *slice = global_data.key_slices[slice_idx]; in get_volatile_key_slot()292 return &global_data.key_slices[KEY_SLOT_CACHE_SLICE_INDEX][slot_idx]; in get_persistent_key_slot()297 return &global_data.key_slices[slice_idx][slot_idx]; in get_key_slot()305 return ARRAY_LENGTH(global_data.key_slots); in key_slice_length()310 MBEDTLS_STATIC_ASSERT(ARRAY_LENGTH(global_data.key_slots) <= in get_volatile_key_slot()313 return &global_data.key_slots[key_id - PSA_KEY_ID_VOLATILE_MIN]; in get_volatile_key_slot()318 return &global_data.key_slots[slot_idx]; in get_persistent_key_slot()324 return &global_data.key_slots[slot_idx]; in get_key_slot()[all …]
125 static psa_global_data_t global_data; variable135 initialized = global_data.rng_state == RNG_SEEDED; in psa_get_initialized()146 (initialized && (global_data.initialized == PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED)); in psa_get_initialized()163 initialized = (global_data.initialized & PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED) != 0; in psa_get_drivers_initialized()4265 status = mbedtls_psa_external_get_random(&global_data.rng,4287 ret = mbedtls_ctr_drbg_random(&global_data.rng.drbg, output, request_size);4289 ret = mbedtls_hmac_drbg_random(&global_data.rng.drbg, output, request_size);8124 if (global_data.rng_state != RNG_NOT_INITIALIZED) {8127 global_data.rng.entropy_init = entropy_init;8128 global_data.rng.entropy_free = entropy_free;[all …]
13 - `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]) [
164 /* Test getting global_data.rng_state. */