Lines Matching refs:attributes
189 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in generate() local
191 psa_set_key_usage_flags(&attributes, in generate()
193 psa_set_key_algorithm(&attributes, KDF_ALG); in generate()
194 psa_set_key_type(&attributes, PSA_KEY_TYPE_DERIVE); in generate()
195 psa_set_key_bits(&attributes, PSA_BYTES_TO_BITS(KEY_SIZE_BYTES)); in generate()
197 PSA_CHECK(psa_generate_key(&attributes, &key)); in generate()
217 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in import_key_from_file() local
237 psa_set_key_usage_flags(&attributes, usage); in import_key_from_file()
238 psa_set_key_algorithm(&attributes, alg); in import_key_from_file()
239 psa_set_key_type(&attributes, PSA_KEY_TYPE_DERIVE); in import_key_from_file()
240 PSA_CHECK(psa_import_key(&attributes, key_data, key_size, master_key)); in import_key_from_file()
266 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in derive_key_ladder() local
270 psa_set_key_usage_flags(&attributes, in derive_key_ladder()
272 psa_set_key_algorithm(&attributes, KDF_ALG); in derive_key_ladder()
273 psa_set_key_type(&attributes, PSA_KEY_TYPE_DERIVE); in derive_key_ladder()
274 psa_set_key_bits(&attributes, PSA_BYTES_TO_BITS(KEY_SIZE_BYTES)); in derive_key_ladder()
295 PSA_CHECK(psa_key_derivation_output_key(&attributes, &operation, in derive_key_ladder()
315 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in derive_wrapping_key() local
334 psa_set_key_usage_flags(&attributes, usage); in derive_wrapping_key()
335 psa_set_key_algorithm(&attributes, WRAPPING_ALG); in derive_wrapping_key()
336 psa_set_key_type(&attributes, PSA_KEY_TYPE_AES); in derive_wrapping_key()
337 psa_set_key_bits(&attributes, WRAPPING_KEY_BITS); in derive_wrapping_key()
338 PSA_CHECK(psa_key_derivation_output_key(&attributes, &operation, in derive_wrapping_key()
353 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in wrap_data() local
376 PSA_CHECK(psa_get_key_attributes(wrapping_key, &attributes)); in wrap_data()
377 key_type = psa_get_key_type(&attributes); in wrap_data()
440 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in unwrap_data() local
465 PSA_CHECK(psa_get_key_attributes(wrapping_key, &attributes)); in unwrap_data()
466 key_type = psa_get_key_type(&attributes); in unwrap_data()