Lines Matching refs:ameth

68         if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL)  in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
84 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
85 size = pkey->ameth->pkey_security_bits(pkey); in EVP_PKEY_get_security_bits()
219 if (from->ameth != NULL && from->ameth->param_copy != NULL) in EVP_PKEY_copy_parameters()
220 ok = from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
231 else if (pkey->ameth != NULL && pkey->ameth->param_missing != NULL) in EVP_PKEY_missing_parameters()
232 return pkey->ameth->param_missing(pkey); in EVP_PKEY_missing_parameters()
325 if (a->ameth != NULL && a->ameth->param_cmp != NULL) in EVP_PKEY_parameters_eq()
326 return a->ameth->param_cmp(a, b); in EVP_PKEY_parameters_eq()
365 if (a->ameth != NULL) { in EVP_PKEY_eq()
368 if (a->ameth->param_cmp != NULL) { in EVP_PKEY_eq()
369 ret = a->ameth->param_cmp(a, b); in EVP_PKEY_eq()
374 if (a->ameth->pub_cmp != NULL) in EVP_PKEY_eq()
375 return a->ameth->pub_cmp(a, b); in EVP_PKEY_eq()
393 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in new_raw_key_int() local
402 ameth = EVP_PKEY_asn1_find_str(&tmpe, strtype, -1); in new_raw_key_int()
404 ameth = EVP_PKEY_asn1_find(&tmpe, nidtype); in new_raw_key_int()
408 ameth = NULL; in new_raw_key_int()
414 if (e == NULL && ameth == NULL) { in new_raw_key_int()
462 if (!ossl_assert(pkey->ameth != NULL)) in new_raw_key_int()
466 if (pkey->ameth->set_priv_key == NULL) { in new_raw_key_int()
471 if (!pkey->ameth->set_priv_key(pkey, key, len)) { in new_raw_key_int()
476 if (pkey->ameth->set_pub_key == NULL) { in new_raw_key_int()
481 if (!pkey->ameth->set_pub_key(pkey, key, len)) { in new_raw_key_int()
571 if (pkey->ameth == NULL) { in EVP_PKEY_get_raw_private_key()
576 if (pkey->ameth->get_priv_key == NULL) { in EVP_PKEY_get_raw_private_key()
581 if (!pkey->ameth->get_priv_key(pkey, priv, len)) { in EVP_PKEY_get_raw_private_key()
603 if (pkey->ameth == NULL) { in EVP_PKEY_get_raw_public_key()
608 if (pkey->ameth->get_pub_key == NULL) { in EVP_PKEY_get_raw_public_key()
613 if (!pkey->ameth->get_pub_key(pkey, pub, len)) { in EVP_PKEY_get_raw_public_key()
979 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_type() local
981 ameth = EVP_PKEY_asn1_find(&e, type); in EVP_PKEY_type()
982 if (ameth) in EVP_PKEY_type()
983 ret = ameth->pkey_id; in EVP_PKEY_type()
1204 (pkey->ameth != NULL ? pkey->ameth->pub_print : NULL), in EVP_PKEY_print_public()
1212 (pkey->ameth != NULL ? pkey->ameth->priv_print : NULL), in EVP_PKEY_print_private()
1220 (pkey->ameth != NULL ? pkey->ameth->param_print : NULL), in EVP_PKEY_print_params()
1328 if (pkey->ameth == NULL) in evp_pkey_asn1_ctrl()
1330 if (pkey->ameth->pkey_ctrl == NULL) in evp_pkey_asn1_ctrl()
1332 return pkey->ameth->pkey_ctrl(pkey, op, arg1, arg2); in evp_pkey_asn1_ctrl()
1345 if (pkey->ameth == NULL) in EVP_PKEY_get_default_digest_name()
1504 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in pkey_set_type() local
1534 && pkey->ameth != NULL) in pkey_set_type()
1547 ameth = EVP_PKEY_asn1_find_str(eptr, str, len); in pkey_set_type()
1549 ameth = EVP_PKEY_asn1_find(eptr, type); in pkey_set_type()
1561 check = check && ameth == NULL; in pkey_set_type()
1587 pkey->ameth = ameth; in pkey_set_type()
1597 if (ameth != NULL) { in pkey_set_type()
1599 pkey->type = ameth->pkey_id; in pkey_set_type()
1703 const EVP_PKEY_ASN1_METHOD *ameth = pkey->ameth; in EVP_PKEY_dup() local
1705 if (ameth == NULL || ameth->copy == NULL) { in EVP_PKEY_dup()
1712 if (!ameth->copy(dup_pk, pkey)) in EVP_PKEY_dup()
1736 const EVP_PKEY_ASN1_METHOD *ameth = x->ameth; in evp_pkey_free_legacy() local
1739 if (ameth == NULL && x->legacy_cache_pkey.ptr != NULL) in evp_pkey_free_legacy()
1740 ameth = EVP_PKEY_asn1_find(&tmpe, x->type); in evp_pkey_free_legacy()
1742 if (ameth != NULL) { in evp_pkey_free_legacy()
1756 if (ameth->pkey_free != NULL) in evp_pkey_free_legacy()
1757 ameth->pkey_free(x); in evp_pkey_free_legacy()
1818 if (pkey->ameth != NULL && pkey->ameth->pkey_size != NULL) in EVP_PKEY_get_size()
1819 size = pkey->ameth->pkey_size(pkey); in EVP_PKEY_get_size()
1837 if (pkey->ameth != NULL) in EVP_PKEY_get0_description()
1838 return pkey->ameth->info; in EVP_PKEY_get0_description()
1871 if (pk->ameth->dirty_cnt == NULL || pk->ameth->export_to == NULL) in evp_pkey_export_to_provider()
1908 if (pk->ameth->dirty_cnt(pk) == pk->dirty_cnt_copy) { in evp_pkey_export_to_provider()
1943 if (!pk->ameth->export_to(pk, keydata, tmp_keymgmt->import, in evp_pkey_export_to_provider()
1964 if (pk->ameth->dirty_cnt(pk) != pk->dirty_cnt_copy in evp_pkey_export_to_provider()
1995 pk->dirty_cnt_copy = pk->ameth->dirty_cnt(pk); in evp_pkey_export_to_provider()
2071 if ((*dest)->ameth->import_from == NULL) { in evp_pkey_copy_downgraded()
2090 (*dest)->ameth->import_from, in evp_pkey_copy_downgraded()
2093 (*dest)->dirty_cnt_copy = (*dest)->ameth->dirty_cnt(*dest); in evp_pkey_copy_downgraded()