Lines Matching refs:attributes
45 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in check_key_attributes_sanity() local
50 psa_status_t status = psa_get_key_attributes(key, &attributes); in check_key_attributes_sanity()
53 psa_reset_key_attributes(&attributes); in check_key_attributes_sanity()
57 lifetime = psa_get_key_lifetime(&attributes); in check_key_attributes_sanity()
58 id = psa_get_key_id(&attributes); in check_key_attributes_sanity()
59 type = psa_get_key_type(&attributes); in check_key_attributes_sanity()
60 bits = psa_get_key_bits(&attributes); in check_key_attributes_sanity()
79 status = psa_get_key_slot_number(&attributes, &slot_number); in check_key_attributes_sanity()
115 psa_reset_key_attributes(&attributes); in check_key_attributes_sanity()
183 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_cipher_key() local
192 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_cipher_key()
193 key_type = psa_get_key_type(&attributes); in exercise_cipher_key()
259 psa_reset_key_attributes(&attributes); in exercise_cipher_key()
270 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_aead_key() local
283 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_aead_key()
284 key_type = psa_get_key_type(&attributes); in exercise_aead_key()
322 psa_reset_key_attributes(&attributes); in exercise_aead_key()
638 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_test_psa_key_agreement_with_self() local
640 psa_status_t status = psa_get_key_attributes(key, &attributes); in mbedtls_test_psa_key_agreement_with_self()
643 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_key_agreement_with_self()
648 private_key_type = psa_get_key_type(&attributes); in mbedtls_test_psa_key_agreement_with_self()
649 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_key_agreement_with_self()
675 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_key_agreement_with_self()
695 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_test_psa_raw_key_agreement_with_self() local
697 psa_status_t status = psa_get_key_attributes(key, &attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
700 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
705 private_key_type = psa_get_key_type(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
706 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
741 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
799 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_key_agreement_key() local
800 psa_status_t status = psa_get_key_attributes(key, &attributes); in exercise_key_agreement_key()
806 size_t key_bits = psa_get_key_bits(&attributes); in exercise_key_agreement_key()
1009 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_export_key() local
1015 psa_status_t status = psa_get_key_attributes(key, &attributes); in exercise_export_key()
1018 psa_reset_key_attributes(&attributes); in exercise_export_key()
1024 psa_get_key_type(&attributes), in exercise_export_key()
1025 psa_get_key_bits(&attributes)); in exercise_export_key()
1034 !PSA_KEY_TYPE_IS_PUBLIC_KEY(psa_get_key_type(&attributes))) { in exercise_export_key()
1041 psa_get_key_type(&attributes), psa_get_key_bits(&attributes), in exercise_export_key()
1049 psa_reset_key_attributes(&attributes); in exercise_export_key()
1058 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_export_public_key() local
1065 psa_status_t status = psa_get_key_attributes(key, &attributes); in exercise_export_public_key()
1068 psa_reset_key_attributes(&attributes); in exercise_export_public_key()
1072 if (!PSA_KEY_TYPE_IS_ASYMMETRIC(psa_get_key_type(&attributes))) { in exercise_export_public_key()
1074 psa_get_key_type(&attributes), in exercise_export_public_key()
1075 psa_get_key_bits(&attributes)); in exercise_export_public_key()
1091 psa_get_key_type(&attributes)); in exercise_export_public_key()
1093 psa_get_key_bits(&attributes)); in exercise_export_public_key()
1105 public_type, psa_get_key_bits(&attributes), in exercise_export_public_key()
1113 psa_reset_key_attributes(&attributes); in exercise_export_public_key()