Searched refs:attr (Results 1 – 7 of 7) sorted by relevance
/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | psa_crypto_storage.c | 250 const psa_core_key_attributes_t *attr, in psa_format_key_data_for_storage() argument 258 MBEDTLS_PUT_UINT32_LE( attr->lifetime, storage_format->lifetime, 0 ); in psa_format_key_data_for_storage() 259 MBEDTLS_PUT_UINT16_LE( (uint16_t) attr->type, storage_format->type, 0 ); in psa_format_key_data_for_storage() 260 MBEDTLS_PUT_UINT16_LE( (uint16_t) attr->bits, storage_format->bits, 0 ); in psa_format_key_data_for_storage() 261 MBEDTLS_PUT_UINT32_LE( attr->policy.usage, storage_format->policy, 0 ); in psa_format_key_data_for_storage() 262 MBEDTLS_PUT_UINT32_LE( attr->policy.alg, storage_format->policy, sizeof( uint32_t ) ); in psa_format_key_data_for_storage() 263 MBEDTLS_PUT_UINT32_LE( attr->policy.alg2, storage_format->policy, 2 * sizeof( uint32_t ) ); in psa_format_key_data_for_storage() 280 psa_core_key_attributes_t *attr ) in psa_parse_key_data_from_storage() argument 315 attr->lifetime = MBEDTLS_GET_UINT32_LE( storage_format->lifetime, 0 ); in psa_parse_key_data_from_storage() 316 attr->type = MBEDTLS_GET_UINT16_LE( storage_format->type, 0 ); in psa_parse_key_data_from_storage() [all …]
|
D | psa_crypto_slot_management.c | 121 status = mbedtls_svc_key_id_equal( key, slot->attr.id ) ? in psa_get_and_lock_key_slot_in_memory() 132 if( mbedtls_svc_key_id_equal( key, slot->attr.id ) ) in psa_get_and_lock_key_slot_in_memory() 195 ( ! PSA_KEY_LIFETIME_IS_VOLATILE( slot->attr.lifetime ) ) && in psa_get_empty_key_slot() 243 status = psa_load_persistent_key( &slot->attr, in psa_load_persistent_key_into_slot() 253 if( psa_get_se_driver( slot->attr.lifetime, &drv, &drv_context ) ) in psa_load_persistent_key_into_slot() 289 MBEDTLS_SVC_KEY_ID_GET_KEY_ID( slot->attr.id ) ) ) in psa_load_builtin_key_into_slot() 296 slot->attr.id, &lifetime, &slot_number ); in psa_load_builtin_key_into_slot() 302 psa_set_key_id( &attributes, slot->attr.id ); in psa_load_builtin_key_into_slot() 339 slot->attr = attributes.core; in psa_load_builtin_key_into_slot() 374 (*p_slot)->attr.id = key; in psa_get_and_lock_key_slot() [all …]
|
D | psa_crypto_core.h | 58 psa_core_key_attributes_t attr; member 110 return( slot->attr.type != 0 ); in psa_is_key_slot_occupied() 137 return( slot->attr.flags & mask ); in psa_key_slot_get_flags() 150 slot->attr.flags = ( ( ~mask & slot->attr.flags ) | in psa_key_slot_set_flags() 162 slot->attr.flags |= mask; in psa_key_slot_set_bits_in_flags() 173 slot->attr.flags &= ~mask; in psa_key_slot_clear_bits()
|
D | psa_crypto_storage.h | 108 psa_status_t psa_save_persistent_key( const psa_core_key_attributes_t *attr, 138 psa_status_t psa_load_persistent_key( psa_core_key_attributes_t *attr, 178 const psa_core_key_attributes_t *attr, 201 psa_core_key_attributes_t *attr );
|
D | psa_crypto.c | 981 if( PSA_KEY_TYPE_IS_PUBLIC_KEY( slot->attr.type ) ) in psa_get_and_lock_key_slot_with_policy() 984 if( ( slot->attr.policy.usage & usage ) != usage ) in psa_get_and_lock_key_slot_with_policy() 993 status = psa_key_policy_permits( &slot->attr.policy, in psa_get_and_lock_key_slot_with_policy() 994 slot->attr.type, in psa_get_and_lock_key_slot_with_policy() 1033 if( psa_key_lifetime_is_external( (*p_slot)->attr.lifetime ) ) in psa_get_and_lock_transparent_key_slot_with_policy() 1126 if( PSA_KEY_LIFETIME_IS_READ_ONLY( slot->attr.lifetime ) ) in psa_destroy_key() 1138 driver = psa_get_se_driver_entry( slot->attr.lifetime ); in psa_destroy_key() 1147 psa_crypto_transaction.key.lifetime = slot->attr.lifetime; in psa_destroy_key() 1149 psa_crypto_transaction.key.id = slot->attr.id; in psa_destroy_key() 1173 if( ! PSA_KEY_LIFETIME_IS_VOLATILE( slot->attr.lifetime ) ) in psa_destroy_key() [all …]
|
D | debug.c | 377 mbedtls_debug_ecdh_attr attr ) in mbedtls_debug_printf_ecdh_internal() argument 385 switch( attr ) in mbedtls_debug_printf_ecdh_internal() 407 mbedtls_debug_ecdh_attr attr ) in mbedtls_debug_printf_ecdh() argument 410 mbedtls_debug_printf_ecdh_internal( ssl, level, file, line, ecdh, attr ); in mbedtls_debug_printf_ecdh() 416 attr ); in mbedtls_debug_printf_ecdh()
|
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/ |
D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|