Home
last modified time | relevance | path

Searched refs:ameth (Results 1 – 20 of 20) sorted by relevance

/external/openssl/crypto/asn1/
Dameth_lib.c116 const EVP_PKEY_ASN1_METHOD *, ameth);
125 const EVP_PKEY_ASN1_METHOD *, ameth);
204 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_asn1_find_str() local
211 ameth = ENGINE_pkey_asn1_find_str(&e, str, len); in EVP_PKEY_asn1_find_str()
212 if (ameth) in EVP_PKEY_asn1_find_str()
218 ameth = NULL; in EVP_PKEY_asn1_find_str()
221 return ameth; in EVP_PKEY_asn1_find_str()
228 ameth = EVP_PKEY_asn1_get0(i); in EVP_PKEY_asn1_find_str()
229 if (ameth->pkey_flags & ASN1_PKEY_ALIAS) in EVP_PKEY_asn1_find_str()
231 if (((int)strlen(ameth->pem_str) == len) && in EVP_PKEY_asn1_find_str()
[all …]
Di2d_pr.c67 if (a->ameth && a->ameth->old_priv_encode) in i2d_PrivateKey()
69 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
71 if (a->ameth && a->ameth->priv_encode) { in i2d_PrivateKey()
Dx_pubkey.c98 if (pkey->ameth)
100 if (pkey->ameth->pub_encode)
102 if (!pkey->ameth->pub_encode(pk, pkey))
159 if (ret->ameth->pub_decode) in X509_PUBKEY_get()
161 if (!ret->ameth->pub_decode(ret, key)) in X509_PUBKEY_get()
Dd2i_pr.c102 if (!ret->ameth->old_priv_decode || in d2i_PrivateKey()
103 !ret->ameth->old_priv_decode(ret, pp, length)) in d2i_PrivateKey()
105 if (ret->ameth->priv_decode) in d2i_PrivateKey()
Da_sign.c240 if (!pkey->ameth || in ASN1_item_sign()
242 pkey->ameth->pkey_id)) in ASN1_item_sign()
252 if (pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL) in ASN1_item_sign()
Da_verify.c155 if (EVP_PKEY_type(pknid) != pkey->ameth->pkey_id) in ASN1_item_verify()
/external/openssl/crypto/evp/
Dp_lib.c87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits) in EVP_PKEY_bits()
88 return pkey->ameth->pkey_bits(pkey); in EVP_PKEY_bits()
94 if (pkey && pkey->ameth && pkey->ameth->pkey_size) in EVP_PKEY_size()
95 return pkey->ameth->pkey_size(pkey); in EVP_PKEY_size()
137 if (from->ameth && from->ameth->param_copy) in EVP_PKEY_copy_parameters()
138 return from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
145 if (pkey->ameth && pkey->ameth->param_missing) in EVP_PKEY_missing_parameters()
146 return pkey->ameth->param_missing(pkey); in EVP_PKEY_missing_parameters()
154 if (a->ameth && a->ameth->param_cmp) in EVP_PKEY_cmp_parameters()
155 return a->ameth->param_cmp(a, b); in EVP_PKEY_cmp_parameters()
[all …]
Devp_pkey.c90 if (pkey->ameth->priv_decode) in EVP_PKCS82PKEY()
92 if (!pkey->ameth->priv_decode(pkey, p8)) in EVP_PKCS82PKEY()
129 if (pkey->ameth) in EVP_PKEY2PKCS8_broken()
131 if (pkey->ameth->priv_encode) in EVP_PKEY2PKCS8_broken()
133 if (!pkey->ameth->priv_encode(p8, pkey)) in EVP_PKEY2PKCS8_broken()
Devp.h132 const EVP_PKEY_ASN1_METHOD *ameth; member
960 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
964 const EVP_PKEY_ASN1_METHOD *ameth);
971 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
972 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
980 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
985 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
995 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
997 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
Dpmeth_lib.c132 if (!pkey || !pkey->ameth) in int_ctx_new()
134 id = pkey->ameth->pkey_id; in int_ctx_new()
/external/openssl/crypto/pem/
Dpem_pkey.c124 const EVP_PKEY_ASN1_METHOD *ameth; in PEM_read_bio_PrivateKey() local
125 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in PEM_read_bio_PrivateKey()
126 if (!ameth || !ameth->old_priv_decode) in PEM_read_bio_PrivateKey()
128 ret=d2i_PrivateKey(ameth->pkey_id,x,&p,len); in PEM_read_bio_PrivateKey()
145 if (!x->ameth || x->ameth->priv_encode) in PEM_write_bio_PrivateKey()
150 BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str); in PEM_write_bio_PrivateKey()
175 || !ret->ameth->param_decode in PEM_read_bio_Parameters()
176 || !ret->ameth->param_decode(ret, &p, len)) in PEM_read_bio_Parameters()
199 if (!x->ameth || !x->ameth->param_encode) in PEM_write_bio_Parameters()
202 BIO_snprintf(pem_str, 80, "%s PARAMETERS", x->ameth->pem_str); in PEM_write_bio_Parameters()
[all …]
Dpem_lib.c195 const EVP_PKEY_ASN1_METHOD *ameth; in check_pem() local
207 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in check_pem()
208 if (ameth && ameth->old_priv_decode) in check_pem()
217 const EVP_PKEY_ASN1_METHOD *ameth; in check_pem() local
222 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen); in check_pem()
223 if (ameth) in check_pem()
226 if (ameth->param_decode) in check_pem()
/external/openssl/apps/
Dgenpkey.c367 const EVP_PKEY_ASN1_METHOD *ameth; in init_gen_str() local
377 ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1); in init_gen_str()
380 if (!ameth && e) in init_gen_str()
381 ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1); in init_gen_str()
384 if (!ameth) in init_gen_str()
392 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in init_gen_str()
Ddgst.c499 const EVP_PKEY_ASN1_METHOD *ameth; in MAIN() local
500 ameth = EVP_PKEY_get0_asn1(sigkey); in MAIN()
501 if (ameth) in MAIN()
503 NULL, NULL, &sig_name, ameth); in MAIN()
Dreq.c1608 const EVP_PKEY_ASN1_METHOD *ameth; local
1618 ameth = EVP_PKEY_asn1_find_str(&tmpeng, gstr, len);
1620 if (!ameth)
1627 ameth);
1687 const EVP_PKEY_ASN1_METHOD *ameth; local
1690 ameth = EVP_PKEY_asn1_find(&tmpeng, *pkey_type);
1691 if (!ameth)
1696 EVP_PKEY_asn1_get0_info(NULL, NULL, NULL, NULL, &anam, ameth);
Dopenssl.c556 const EVP_PKEY_ASN1_METHOD *ameth; in list_pkey() local
559 ameth = EVP_PKEY_asn1_get0(i); in list_pkey()
561 &pinfo, &pem_str, ameth); in list_pkey()
/external/openssl/crypto/pkcs7/
Dpk7_lib.c394 if (pkey->ameth && pkey->ameth->pkey_ctrl) in PKCS7_SIGNER_INFO_set()
396 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_SIGN, in PKCS7_SIGNER_INFO_set()
546 if (!pkey || !pkey->ameth || !pkey->ameth->pkey_ctrl) in PKCS7_RECIP_INFO_set()
553 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_ENCRYPT, in PKCS7_RECIP_INFO_set()
/external/openssl/include/openssl/
Devp.h132 const EVP_PKEY_ASN1_METHOD *ameth; member
960 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
964 const EVP_PKEY_ASN1_METHOD *ameth);
971 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
972 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
980 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
985 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
995 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
997 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
/external/openssl/ssl/
Dssl_ciph.c325 const EVP_PKEY_ASN1_METHOD *ameth; in get_optional_pkey_id() local
327 ameth = EVP_PKEY_asn1_find_str(NULL,pkey_name,-1); in get_optional_pkey_id()
328 if (ameth) in get_optional_pkey_id()
330 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth); in get_optional_pkey_id()
339 const EVP_PKEY_ASN1_METHOD *ameth; in get_optional_pkey_id() local
342 ameth = EVP_PKEY_asn1_find_str(&tmpeng,pkey_name,-1); in get_optional_pkey_id()
343 if (ameth) in get_optional_pkey_id()
345 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth); in get_optional_pkey_id()
/external/ipsec-tools/src/racoon/
Dcfparse.y2382 TMPALGTYPE2STR(ameth),