Home
last modified time | relevance | path

Searched refs:key_attrs (Results 1 – 2 of 2) sorted by relevance

/mbedtls-3.6.0/library/
Dpkwrite.c73 psa_key_attributes_t key_attrs = PSA_KEY_ATTRIBUTES_INIT; in pk_get_opaque_ec_family() local
75 if (psa_get_key_attributes(pk->priv_id, &key_attrs) != PSA_SUCCESS) { in pk_get_opaque_ec_family()
78 ec_family = PSA_KEY_TYPE_ECC_GET_FAMILY(psa_get_key_type(&key_attrs)); in pk_get_opaque_ec_family()
79 psa_reset_key_attributes(&key_attrs); in pk_get_opaque_ec_family()
Dpkparse.c705 psa_key_attributes_t key_attrs = PSA_KEY_ATTRIBUTES_INIT; in pk_get_ecpubkey() local
736 psa_set_key_usage_flags(&key_attrs, 0); in pk_get_ecpubkey()
737 psa_set_key_algorithm(&key_attrs, PSA_ALG_ECDSA_ANY); in pk_get_ecpubkey()
738 psa_set_key_type(&key_attrs, PSA_KEY_TYPE_ECC_PUBLIC_KEY(pk->ec_family)); in pk_get_ecpubkey()
739 psa_set_key_bits(&key_attrs, pk->ec_bits); in pk_get_ecpubkey()
741 if ((psa_import_key(&key_attrs, pk->pub_raw, pk->pub_raw_len, in pk_get_ecpubkey()