• Home
  • Raw
  • Download

Lines Matching refs:attributes

46     psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;  in check_key_attributes_sanity()  local
52 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in check_key_attributes_sanity()
53 lifetime = psa_get_key_lifetime(&attributes); in check_key_attributes_sanity()
54 id = psa_get_key_id(&attributes); in check_key_attributes_sanity()
55 type = psa_get_key_type(&attributes); in check_key_attributes_sanity()
56 bits = psa_get_key_bits(&attributes); in check_key_attributes_sanity()
73 psa_status_t status = psa_get_key_slot_number(&attributes, &slot_number); in check_key_attributes_sanity()
108 psa_reset_key_attributes(&attributes); in check_key_attributes_sanity()
162 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_cipher_key() local
170 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_cipher_key()
171 key_type = psa_get_key_type(&attributes); in exercise_cipher_key()
226 psa_reset_key_attributes(&attributes); in exercise_cipher_key()
236 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_aead_key() local
248 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_aead_key()
249 key_type = psa_get_key_type(&attributes); in exercise_aead_key()
278 psa_reset_key_attributes(&attributes); in exercise_aead_key()
501 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_test_psa_key_agreement_with_self() local
503 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in mbedtls_test_psa_key_agreement_with_self()
504 private_key_type = psa_get_key_type(&attributes); in mbedtls_test_psa_key_agreement_with_self()
505 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_key_agreement_with_self()
520 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_key_agreement_with_self()
543 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in mbedtls_test_psa_raw_key_agreement_with_self() local
545 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in mbedtls_test_psa_raw_key_agreement_with_self()
546 private_key_type = psa_get_key_type(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
547 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
571 psa_reset_key_attributes(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self()
626 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_key_agreement_key() local
627 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_key_agreement_key()
628 size_t key_bits = psa_get_key_bits(&attributes); in exercise_key_agreement_key()
829 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_export_key() local
835 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_export_key()
838 psa_get_key_type(&attributes), in exercise_export_key()
839 psa_get_key_bits(&attributes)); in exercise_export_key()
843 !PSA_KEY_TYPE_IS_PUBLIC_KEY(psa_get_key_type(&attributes))) { in exercise_export_key()
855 psa_get_key_type(&attributes), psa_get_key_bits(&attributes), in exercise_export_key()
863 psa_reset_key_attributes(&attributes); in exercise_export_key()
871 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in exercise_export_public_key() local
878 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_export_public_key()
879 if (!PSA_KEY_TYPE_IS_ASYMMETRIC(psa_get_key_type(&attributes))) { in exercise_export_public_key()
881 psa_get_key_type(&attributes), in exercise_export_public_key()
882 psa_get_key_bits(&attributes)); in exercise_export_public_key()
893 psa_get_key_type(&attributes)); in exercise_export_public_key()
895 psa_get_key_bits(&attributes)); in exercise_export_public_key()
902 public_type, psa_get_key_bits(&attributes), in exercise_export_public_key()
910 psa_reset_key_attributes(&attributes); in exercise_export_public_key()