/mbedtls-latest/library/ |
D | psa_crypto_storage.c | 238 const psa_key_attributes_t *attr, in psa_format_key_data_for_storage() argument 247 MBEDTLS_PUT_UINT32_LE(attr->lifetime, storage_format->lifetime, 0); in psa_format_key_data_for_storage() 248 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->type, storage_format->type, 0); in psa_format_key_data_for_storage() 249 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->bits, storage_format->bits, 0); in psa_format_key_data_for_storage() 250 MBEDTLS_PUT_UINT32_LE(attr->policy.usage, storage_format->policy, 0); in psa_format_key_data_for_storage() 251 MBEDTLS_PUT_UINT32_LE(attr->policy.alg, storage_format->policy, sizeof(uint32_t)); in psa_format_key_data_for_storage() 252 MBEDTLS_PUT_UINT32_LE(attr->policy.alg2, storage_format->policy, 2 * sizeof(uint32_t)); in psa_format_key_data_for_storage() 270 psa_key_attributes_t *attr) in psa_parse_key_data_from_storage() argument 307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0); in psa_parse_key_data_from_storage() 308 attr->type = MBEDTLS_GET_UINT16_LE(storage_format->type, 0); in psa_parse_key_data_from_storage() [all …]
|
D | psa_crypto_slot_management.c | 398 mbedtls_svc_key_id_equal(key, slot->attr.id)) { 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() 628 (!PSA_KEY_LIFETIME_IS_VOLATILE(slot->attr.lifetime))) { in psa_reserve_free_key_slot() 688 status = psa_load_persistent_key(&slot->attr, in psa_load_persistent_key_into_slot() 699 if (psa_get_se_driver(slot->attr.lifetime, &drv, &drv_context)) { in psa_load_persistent_key_into_slot() 736 MBEDTLS_SVC_KEY_ID_GET_KEY_ID(slot->attr.id))) { in psa_load_builtin_key_into_slot() 742 slot->attr.id, &lifetime, &slot_number); in psa_load_builtin_key_into_slot() 749 psa_set_key_id(&attributes, slot->attr.id); in psa_load_builtin_key_into_slot() 789 slot->attr = attributes; in psa_load_builtin_key_into_slot() 845 (*p_slot)->attr.id = key; in psa_get_and_lock_key_slot() [all …]
|
D | psa_crypto.c | 1121 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(slot->attr.type)) { in psa_get_and_lock_key_slot_with_policy() 1125 if ((slot->attr.policy.usage & usage) != usage) { in psa_get_and_lock_key_slot_with_policy() 1132 status = psa_key_policy_permits(&slot->attr.policy, in psa_get_and_lock_key_slot_with_policy() 1133 slot->attr.type, in psa_get_and_lock_key_slot_with_policy() 1180 if (psa_key_lifetime_is_external((*p_slot)->attr.lifetime) in psa_get_and_lock_transparent_key_slot_with_policy() 1182 … && PSA_KEY_LIFETIME_GET_LOCATION((*p_slot)->attr.lifetime) != TFM_BUILTIN_KEY_LOADER_KEY_LOCATION in psa_get_and_lock_transparent_key_slot_with_policy() 1345 if (PSA_KEY_LIFETIME_IS_READ_ONLY(slot->attr.lifetime)) { in psa_destroy_key() 1356 driver = psa_get_se_driver_entry(slot->attr.lifetime); in psa_destroy_key() 1364 psa_crypto_transaction.key.lifetime = slot->attr.lifetime; in psa_destroy_key() 1366 psa_crypto_transaction.key.id = slot->attr.id; in psa_destroy_key() [all …]
|
D | psa_crypto_storage.h | 103 psa_status_t psa_save_persistent_key(const psa_key_attributes_t *attr, 133 psa_status_t psa_load_persistent_key(psa_key_attributes_t *attr, 173 const psa_key_attributes_t *attr, 196 psa_key_attributes_t *attr);
|
D | debug.c | 421 mbedtls_debug_ecdh_attr attr) in mbedtls_debug_printf_ecdh_internal() argument 429 switch (attr) { in mbedtls_debug_printf_ecdh_internal() 450 mbedtls_debug_ecdh_attr attr) in mbedtls_debug_printf_ecdh() argument 453 mbedtls_debug_printf_ecdh_internal(ssl, level, file, line, ecdh, attr); in mbedtls_debug_printf_ecdh() 458 attr); in mbedtls_debug_printf_ecdh()
|
D | debug_internal.h | 168 mbedtls_debug_ecdh_attr attr);
|
D | psa_crypto_core.h | 64 psa_key_attributes_t attr; member
|
D | ssl_msg.c | 5451 psa_key_attributes_t attr = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_ssl_get_record_expansion() local 5470 (void) psa_get_key_attributes(transform->psa_key_enc, &attr); in mbedtls_ssl_get_record_expansion() 5471 key_type = psa_get_key_type(&attr); in mbedtls_ssl_get_record_expansion()
|
/mbedtls-latest/programs/psa/ |
D | aead_demo.c | 170 psa_key_attributes_t attr = PSA_KEY_ATTRIBUTES_INIT; in aead_info() local 171 (void) psa_get_key_attributes(key, &attr); in aead_info() 172 psa_key_type_t key_type = psa_get_key_type(&attr); in aead_info() 173 size_t key_bits = psa_get_key_bits(&attr); in aead_info()
|
/mbedtls-latest/include/mbedtls/ |
D | debug.h | 55 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) \ argument 56 mbedtls_debug_printf_ecdh(ssl, level, __FILE__, __LINE__, ecdh, attr) 67 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) do { } while (0) argument
|
/mbedtls-latest/docs/architecture/psa-thread-safety/ |
D | psa-thread-safety.md | 192 (slot->attr.id == k)]}
|