Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 11 of 11) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_slot_management.c389 psa_key_slot_t *slot = NULL; in psa_get_and_lock_key_slot_in_memory() local
392 slot = get_volatile_key_slot(key_id); in psa_get_and_lock_key_slot_in_memory()
396 if (slot != NULL && in psa_get_and_lock_key_slot_in_memory()
397 slot->state == PSA_SLOT_FULL && in psa_get_and_lock_key_slot_in_memory()
398 mbedtls_svc_key_id_equal(key, slot->attr.id)) { in psa_get_and_lock_key_slot_in_memory()
409 slot = get_persistent_key_slot(slot_idx); in psa_get_and_lock_key_slot_in_memory()
411 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory()
412 (mbedtls_svc_key_id_equal(key, slot->attr.id))) { in psa_get_and_lock_key_slot_in_memory()
421 status = psa_register_read(slot); in psa_get_and_lock_key_slot_in_memory()
423 *p_slot = slot; in psa_get_and_lock_key_slot_in_memory()
[all …]
H A Dpsa_crypto_slot_management.h184 psa_key_slot_t *slot);
206 psa_key_slot_t *slot, psa_key_slot_state_t expected_state, in psa_key_slot_state_transition() argument
209 if (slot->state != expected_state) { in psa_key_slot_state_transition()
212 slot->state = new_state; in psa_key_slot_state_transition()
230 static inline psa_status_t psa_register_read(psa_key_slot_t *slot) in psa_register_read() argument
232 if ((slot->state != PSA_SLOT_FULL) || in psa_register_read()
233 (slot->var.occupied.registered_readers >= SIZE_MAX)) { in psa_register_read()
236 slot->var.occupied.registered_readers++; in psa_register_read()
265 psa_status_t psa_unregister_read(psa_key_slot_t *slot);
286 psa_status_t psa_unregister_read_under_mutex(psa_key_slot_t *slot);
H A Dpsa_crypto.c705 psa_status_t psa_allocate_buffer_to_slot(psa_key_slot_t *slot, in psa_allocate_buffer_to_slot() argument
713 if (slot->key.data != NULL) { in psa_allocate_buffer_to_slot()
717 slot->key.data = mbedtls_calloc(1, buffer_length); in psa_allocate_buffer_to_slot()
718 if (slot->key.data == NULL) { in psa_allocate_buffer_to_slot()
723 slot->key.bytes = buffer_length; in psa_allocate_buffer_to_slot()
727 psa_status_t psa_copy_key_material_into_slot(psa_key_slot_t *slot, in psa_copy_key_material_into_slot() argument
731 psa_status_t status = psa_allocate_buffer_to_slot(slot, in psa_copy_key_material_into_slot()
737 memcpy(slot->key.data, data, data_length); in psa_copy_key_material_into_slot()
1104 psa_key_slot_t *slot = NULL; in psa_get_and_lock_key_slot_with_policy() local
1110 slot = *p_slot; in psa_get_and_lock_key_slot_with_policy()
[all …]
H A Dpsa_crypto_core.h206 static inline int psa_key_slot_has_readers(const psa_key_slot_t *slot) in psa_key_slot_has_readers() argument
208 return slot->var.occupied.registered_readers > 0; in psa_key_slot_has_readers()
219 const psa_key_slot_t *slot) in psa_key_slot_get_slot_number() argument
221 return *((psa_key_slot_number_t *) (slot->key.data)); in psa_key_slot_get_slot_number()
243 psa_status_t psa_wipe_key_slot(psa_key_slot_t *slot);
257 psa_status_t psa_allocate_buffer_to_slot(psa_key_slot_t *slot,
261 psa_status_t psa_remove_key_data_from_memory(psa_key_slot_t *slot);
280 psa_status_t psa_copy_key_material_into_slot(psa_key_slot_t *slot,
H A Dpsa_crypto_storage.h295 psa_key_slot_number_t slot; member
H A Dcipher_wrap.h166 mbedtls_svc_key_id_t slot; member
H A Dcipher.c221 (void) psa_destroy_key(cipher_psa->slot); in mbedtls_cipher_free()
397 &cipher_psa->slot); in mbedtls_cipher_setkey()
1378 cipher_psa->slot, in mbedtls_cipher_crypt()
1382 cipher_psa->slot, in mbedtls_cipher_crypt()
1475 status = psa_aead_encrypt(cipher_psa->slot, in mbedtls_cipher_aead_encrypt()
1552 status = psa_aead_decrypt(cipher_psa->slot, in mbedtls_cipher_aead_decrypt()
H A Dssl_msg.c377 uint8_t slot);
6410 uint8_t slot) in ssl_buffering_free_slot() argument
6413 mbedtls_ssl_hs_buffer * const hs_buf = &hs->buffering.hs[slot]; in ssl_buffering_free_slot()
6415 if (slot >= MBEDTLS_SSL_MAX_BUFFERED_HS) { in ssl_buffering_free_slot()
/optee_os/core/arch/arm/dts/
H A Dstm32mp15xx-dhcom-pdk2.dtsi240 dai-tdm-slot-num = <2>;
241 dai-tdm-slot-width = <16>;
258 dai-tdm-slot-num = <2>;
259 dai-tdm-slot-width = <16>;
H A Dstm32mp15xx-dkx.dtsi528 dai-tdm-slot-num = <2>;
529 dai-tdm-slot-width = <32>;
546 dai-tdm-slot-num = <2>;
547 dai-tdm-slot-width = <32>;
/optee_os/ta/avb/
H A Dentry.c16 static TEE_Result get_slot_offset(size_t slot, size_t *offset) in get_slot_offset() argument
18 if (slot >= TA_AVB_MAX_ROLLBACK_LOCATIONS) in get_slot_offset()
21 *offset = sizeof(uint32_t) /* lock_state */ + slot * sizeof(uint64_t); in get_slot_offset()