Lines Matching refs:ameth
99 if (pkey->ameth && pkey->ameth->pkey_free) { in free_it()
100 pkey->ameth->pkey_free(pkey); in free_it()
125 if (pkey->ameth && pkey->ameth->pkey_opaque) { in EVP_PKEY_is_opaque()
126 return pkey->ameth->pkey_opaque(pkey); in EVP_PKEY_is_opaque()
136 if (a->ameth) { in EVP_PKEY_cmp()
139 if (a->ameth->param_cmp) { in EVP_PKEY_cmp()
140 ret = a->ameth->param_cmp(a, b); in EVP_PKEY_cmp()
146 if (a->ameth->pub_cmp) { in EVP_PKEY_cmp()
147 return a->ameth->pub_cmp(a, b); in EVP_PKEY_cmp()
178 if (from->ameth && from->ameth->param_copy) { in EVP_PKEY_copy_parameters()
179 return from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
188 if (pkey->ameth && pkey->ameth->param_missing) { in EVP_PKEY_missing_parameters()
189 return pkey->ameth->param_missing(pkey); in EVP_PKEY_missing_parameters()
195 if (pkey && pkey->ameth && pkey->ameth->pkey_size) { in EVP_PKEY_size()
196 return pkey->ameth->pkey_size(pkey); in EVP_PKEY_size()
202 if (pkey && pkey->ameth && pkey->ameth->pkey_bits) { in EVP_PKEY_bits()
203 return pkey->ameth->pkey_bits(pkey); in EVP_PKEY_bits()
336 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_set_type() local
342 ameth = evp_pkey_asn1_find(type); in EVP_PKEY_set_type()
343 if (ameth == NULL) { in EVP_PKEY_set_type()
350 pkey->ameth = ameth; in EVP_PKEY_set_type()
351 pkey->type = pkey->ameth->pkey_id; in EVP_PKEY_set_type()
365 if (ret->ameth->set_priv_raw == NULL) { in EVP_PKEY_new_raw_private_key()
370 if (!ret->ameth->set_priv_raw(ret, in, len)) { in EVP_PKEY_new_raw_private_key()
389 if (ret->ameth->set_pub_raw == NULL) { in EVP_PKEY_new_raw_public_key()
394 if (!ret->ameth->set_pub_raw(ret, in, len)) { in EVP_PKEY_new_raw_public_key()
407 if (pkey->ameth->get_priv_raw == NULL) { in EVP_PKEY_get_raw_private_key()
412 return pkey->ameth->get_priv_raw(pkey, out, out_len); in EVP_PKEY_get_raw_private_key()
417 if (pkey->ameth->get_pub_raw == NULL) { in EVP_PKEY_get_raw_public_key()
422 return pkey->ameth->get_pub_raw(pkey, out, out_len); in EVP_PKEY_get_raw_public_key()
429 if (a->ameth && a->ameth->param_cmp) { in EVP_PKEY_cmp_parameters()
430 return a->ameth->param_cmp(a, b); in EVP_PKEY_cmp_parameters()
468 if (pkey->ameth->set1_tls_encodedpoint == NULL) { in EVP_PKEY_set1_tls_encodedpoint()
473 return pkey->ameth->set1_tls_encodedpoint(pkey, in, len); in EVP_PKEY_set1_tls_encodedpoint()
477 if (pkey->ameth->get1_tls_encodedpoint == NULL) { in EVP_PKEY_get1_tls_encodedpoint()
482 return pkey->ameth->get1_tls_encodedpoint(pkey, out_ptr); in EVP_PKEY_get1_tls_encodedpoint()