Lines Matching refs:attributes
33 void psa_reset_key_attributes( psa_key_attributes_t *attributes ) in psa_reset_key_attributes() argument
35 mbedtls_free( attributes->domain_parameters ); in psa_reset_key_attributes()
36 memset( attributes, 0, sizeof( *attributes ) ); in psa_reset_key_attributes()
39 psa_status_t psa_set_key_domain_parameters( psa_key_attributes_t *attributes, in psa_set_key_domain_parameters() argument
56 if( attributes->domain_parameters != NULL ) in psa_set_key_domain_parameters()
58 mbedtls_free( attributes->domain_parameters ); in psa_set_key_domain_parameters()
59 attributes->domain_parameters = NULL; in psa_set_key_domain_parameters()
60 attributes->domain_parameters_size = 0; in psa_set_key_domain_parameters()
63 attributes->domain_parameters = copy; in psa_set_key_domain_parameters()
64 attributes->domain_parameters_size = data_length; in psa_set_key_domain_parameters()
65 attributes->core.type = type; in psa_set_key_domain_parameters()
70 const psa_key_attributes_t *attributes, in psa_get_key_domain_parameters() argument
73 if( attributes->domain_parameters_size > data_size ) in psa_get_key_domain_parameters()
75 *data_length = attributes->domain_parameters_size; in psa_get_key_domain_parameters()
76 if( attributes->domain_parameters_size != 0 ) in psa_get_key_domain_parameters()
77 memcpy( data, attributes->domain_parameters, in psa_get_key_domain_parameters()
78 attributes->domain_parameters_size ); in psa_get_key_domain_parameters()