Lines Matching refs:attributes
192 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_generate_key() argument
213 if (PSA_KEY_TYPE_IS_ECC(psa_get_key_type(attributes)) in mbedtls_test_transparent_generate_key()
214 && PSA_KEY_TYPE_IS_KEY_PAIR(psa_get_key_type(attributes))) { in mbedtls_test_transparent_generate_key()
218 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_generate_key()
222 attributes, key, key_size, key_length); in mbedtls_test_transparent_generate_key()
224 } else if (psa_get_key_type(attributes) == PSA_KEY_TYPE_RSA_KEY_PAIR) { in mbedtls_test_transparent_generate_key()
228 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_generate_key()
233 attributes, in mbedtls_test_transparent_generate_key()
237 } else if (PSA_KEY_TYPE_IS_DH(psa_get_key_type(attributes)) in mbedtls_test_transparent_generate_key()
238 && PSA_KEY_TYPE_IS_KEY_PAIR(psa_get_key_type(attributes))) { in mbedtls_test_transparent_generate_key()
242 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_generate_key()
246 attributes, key, key_size, key_length); in mbedtls_test_transparent_generate_key()
250 (void) attributes; in mbedtls_test_transparent_generate_key()
255 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_generate_key() argument
258 (void) attributes; in mbedtls_test_opaque_generate_key()
266 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_import_key() argument
274 psa_key_type_t type = psa_get_key_type(attributes); in mbedtls_test_transparent_import_key()
288 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_import_key()
295 attributes, in mbedtls_test_transparent_import_key()
305 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_import_key()
312 attributes, in mbedtls_test_transparent_import_key()
322 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_import_key()
329 attributes, in mbedtls_test_transparent_import_key()
348 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_import_key() argument
357 psa_key_type_t type = psa_get_key_type(attributes); in mbedtls_test_opaque_import_key()
395 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_opaque_import_key()
402 attributes, in mbedtls_test_opaque_import_key()
417 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_opaque_import_key()
424 attributes, in mbedtls_test_opaque_import_key()
447 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_export_key() argument
459 if (psa_get_key_type(attributes) != in mbedtls_test_opaque_export_key()
463 if (psa_get_key_bits(attributes) != 256) { in mbedtls_test_opaque_export_key()
466 if (psa_get_key_algorithm(attributes) != in mbedtls_test_opaque_export_key()
470 if ((psa_get_key_usage_flags(attributes) & in mbedtls_test_opaque_export_key()
487 if (psa_get_key_type(attributes) != PSA_KEY_TYPE_AES) { in mbedtls_test_opaque_export_key()
490 if (psa_get_key_bits(attributes) != 128) { in mbedtls_test_opaque_export_key()
493 if (psa_get_key_algorithm(attributes) != PSA_ALG_CTR) { in mbedtls_test_opaque_export_key()
496 if ((psa_get_key_usage_flags(attributes) & in mbedtls_test_opaque_export_key()
517 psa_key_type_t type = psa_get_key_type(attributes); in mbedtls_test_opaque_export_key()
531 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_export_public_key() argument
553 psa_key_type_t key_type = psa_get_key_type(attributes); in mbedtls_test_transparent_export_public_key()
560 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_export_public_key()
566 attributes, in mbedtls_test_transparent_export_public_key()
575 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_export_public_key()
581 attributes, in mbedtls_test_transparent_export_public_key()
590 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_export_public_key()
596 attributes, in mbedtls_test_transparent_export_public_key()
610 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_export_public_key() argument
616 psa_key_type_t key_type = psa_get_key_type(attributes); in mbedtls_test_opaque_export_public_key()
632 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_opaque_export_public_key()
638 attributes, in mbedtls_test_opaque_export_public_key()
653 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_opaque_export_public_key()
659 attributes, in mbedtls_test_opaque_export_public_key()
681 if (psa_get_key_type(attributes) != in mbedtls_test_opaque_export_public_key()
685 if (psa_get_key_bits(attributes) != 256) { in mbedtls_test_opaque_export_public_key()
688 if (psa_get_key_algorithm(attributes) != in mbedtls_test_opaque_export_public_key()
719 psa_key_attributes_t *attributes, in mbedtls_test_opaque_get_builtin_key() argument
724 psa_set_key_type(attributes, PSA_KEY_TYPE_AES); in mbedtls_test_opaque_get_builtin_key()
725 psa_set_key_bits(attributes, 128); in mbedtls_test_opaque_get_builtin_key()
727 attributes, in mbedtls_test_opaque_get_builtin_key()
731 psa_set_key_algorithm(attributes, PSA_ALG_CTR); in mbedtls_test_opaque_get_builtin_key()
743 attributes, in mbedtls_test_opaque_get_builtin_key()
745 psa_set_key_bits(attributes, 256); in mbedtls_test_opaque_get_builtin_key()
747 attributes, in mbedtls_test_opaque_get_builtin_key()
752 attributes, PSA_ALG_ECDSA(PSA_ALG_ANY_HASH)); in mbedtls_test_opaque_get_builtin_key()
768 psa_key_attributes_t *attributes, in mbedtls_test_opaque_copy_key() argument
784 (void) attributes; in mbedtls_test_opaque_copy_key()