Searched refs:global_data (Results 1 – 2 of 2) 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 …]
121 static psa_global_data_t global_data; variable131 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()4399 status = mbedtls_psa_external_get_random(&global_data.rng, in psa_generate_random_internal()4421 ret = mbedtls_ctr_drbg_random(&global_data.rng.drbg, output, request_size); in psa_generate_random_internal()4423 ret = mbedtls_hmac_drbg_random(&global_data.rng.drbg, output, request_size); in psa_generate_random_internal()8314 if (global_data.rng_state != RNG_NOT_INITIALIZED) { in mbedtls_psa_crypto_configure_entropy_sources()8317 global_data.rng.entropy_init = entropy_init; in mbedtls_psa_crypto_configure_entropy_sources()8318 global_data.rng.entropy_free = entropy_free; in mbedtls_psa_crypto_configure_entropy_sources()[all …]