Lines Matching defs:ameth

205 	const EVP_PKEY_ASN1_METHOD *ameth;
219 ameth = asn1_methods[i];
220 if ((ameth->pkey_flags & ASN1_PKEY_ALIAS) != 0)
222 if (strlen(ameth->pem_str) != str_len)
224 if (strncasecmp(ameth->pem_str, str, str_len) == 0)
225 return ameth;
235 const EVP_PKEY_ASN1_METHOD *ameth)
237 if (ameth == NULL)
241 *pkey_id = ameth->pkey_id;
243 *pkey_base_id = ameth->base_method->pkey_id;
245 *pkey_flags = ameth->pkey_flags;
247 *info = ameth->info;
249 *pem_str = ameth->pem_str;
258 return pkey->ameth;
265 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
266 return pkey->ameth->pkey_bits(pkey);
276 if (pkey->ameth == NULL || pkey->ameth->pkey_security_bits == NULL)
279 return pkey->ameth->pkey_security_bits(pkey);
286 if (pkey && pkey->ameth && pkey->ameth->pkey_size)
287 return pkey->ameth->pkey_size(pkey);
329 if (from->ameth && from->ameth->param_copy)
330 return from->ameth->param_copy(to, from);
340 if (pkey->ameth && pkey->ameth->param_missing)
341 return pkey->ameth->param_missing(pkey);
351 if (a->ameth && a->ameth->param_cmp)
352 return a->ameth->param_cmp(a, b);
363 if (a->ameth) {
366 if (a->ameth->param_cmp) {
367 ret = a->ameth->param_cmp(a, b);
372 if (a->ameth->pub_cmp)
373 return a->ameth->pub_cmp(a, b);
408 if (pkey == NULL || pkey->ameth == NULL || pkey->ameth->pkey_free == NULL)
411 pkey->ameth->pkey_free(pkey);
432 const EVP_PKEY_ASN1_METHOD *ameth;
436 if ((ameth = EVP_PKEY_asn1_find(NULL, type)) == NULL) {
441 pkey->ameth = ameth;
442 pkey->type = pkey->ameth->pkey_id;
452 const EVP_PKEY_ASN1_METHOD *ameth;
456 if ((ameth = EVP_PKEY_asn1_find_str(NULL, str, len)) == NULL) {
461 pkey->ameth = ameth;
462 pkey->type = pkey->ameth->pkey_id;
491 if (pkey->ameth->set_priv_key == NULL) {
495 if (!pkey->ameth->set_priv_key(pkey, private_key, len)) {
521 if (pkey->ameth->set_pub_key == NULL) {
525 if (!pkey->ameth->set_pub_key(pkey, public_key, len)) {
543 if (pkey->ameth->get_priv_key == NULL) {
547 if (!pkey->ameth->get_priv_key(pkey, out_private_key, out_len)) {
560 if (pkey->ameth->get_pub_key == NULL) {
564 if (!pkey->ameth->get_pub_key(pkey, out_public_key, out_len)) {
781 const EVP_PKEY_ASN1_METHOD *ameth;
783 if ((ameth = EVP_PKEY_asn1_find(NULL, type)) != NULL)
784 return ameth->pkey_id;
818 if (pkey->ameth && pkey->ameth->pub_print)
819 return pkey->ameth->pub_print(out, pkey, indent, pctx);
829 if (pkey->ameth && pkey->ameth->priv_print)
830 return pkey->ameth->priv_print(out, pkey, indent, pctx);
840 if (pkey->ameth && pkey->ameth->param_print)
841 return pkey->ameth->param_print(out, pkey, indent, pctx);
849 if (!pkey->ameth || !pkey->ameth->pkey_ctrl)
851 return pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_DEFAULT_MD_NID,