Searched refs:ameth (Results 1 - 22 of 22) sorted by relevance

/external/openssl/crypto/asn1/
H A Dameth_lib.c118 const EVP_PKEY_ASN1_METHOD *, ameth);
127 const EVP_PKEY_ASN1_METHOD *, ameth);
206 const EVP_PKEY_ASN1_METHOD *ameth; local
213 ameth = ENGINE_pkey_asn1_find_str(&e, str, len);
214 if (ameth)
220 ameth = NULL;
223 return ameth;
230 ameth = EVP_PKEY_asn1_get0(i);
231 if (ameth->pkey_flags & ASN1_PKEY_ALIAS)
233 if (((int)strlen(ameth
240 EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth) argument
256 EVP_PKEY_ASN1_METHOD *ameth; local
264 EVP_PKEY_asn1_get0_info(int *ppkey_id, int *ppkey_base_id, int *ppkey_flags, const char **pinfo, const char **ppem_str, const EVP_PKEY_ASN1_METHOD *ameth) argument
291 EVP_PKEY_ASN1_METHOD *ameth; local
391 EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) argument
403 EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, int (*pub_decode)(EVP_PKEY *pk, X509_PUBKEY *pub), int (*pub_encode)(X509_PUBKEY *pub, const EVP_PKEY *pk), int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), int (*pkey_size)(const EVP_PKEY *pk), int (*pkey_bits)(const EVP_PKEY *pk)) argument
420 EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, int (*priv_decode)(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf), int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument
431 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode)(EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing)(const EVP_PKEY *pk), int (*param_copy)(EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument
449 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free)(EVP_PKEY *pkey)) argument
455 EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2)) argument
[all...]
H A Di2d_pr.c67 if (a->ameth && a->ameth->old_priv_encode)
69 return a->ameth->old_priv_encode(a, pp);
71 if (a->ameth && a->ameth->priv_encode) {
H A Dd2i_pr.c102 if (!ret->ameth->old_priv_decode ||
103 !ret->ameth->old_priv_decode(ret, pp, length))
105 if (ret->ameth->priv_decode)
H A Da_verify.c153 if (!pkey->ameth || !pkey->ameth->item_verify)
158 ret = pkey->ameth->item_verify(&ctx, it, asn, a,
179 if (EVP_PKEY_type(pknid) != pkey->ameth->pkey_id)
H A Da_sign.c251 if (pkey->ameth->item_sign)
253 rv = pkey->ameth->item_sign(ctx, it, asn, algor1, algor2,
275 if (!pkey->ameth ||
278 pkey->ameth->pkey_id))
288 if (pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL)
H A 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)
161 if (!ret->ameth->pub_decode(ret, key))
H A Dt_x509.c326 const EVP_PKEY_ASN1_METHOD *ameth; local
329 ameth = EVP_PKEY_asn1_find(NULL, pkey_nid);
330 if (ameth && ameth->sig_print)
331 return ameth->sig_print(bp, sigalg, sig, 9, 0);
/external/openssl/crypto/evp/
H A Dp_lib.c87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
94 if (pkey && pkey->ameth && pkey->ameth->pkey_size)
95 return pkey->ameth->pkey_size(pkey);
137 if (from->ameth && from->ameth->param_copy)
138 return from->ameth->param_copy(to, from);
145 if (pkey->ameth
209 const EVP_PKEY_ASN1_METHOD *ameth; local
363 const EVP_PKEY_ASN1_METHOD *ameth; local
[all...]
H A Devp_pkey.c90 if (pkey->ameth->priv_decode)
92 if (!pkey->ameth->priv_decode(pkey, p8))
129 if (pkey->ameth)
131 if (pkey->ameth->priv_encode)
133 if (!pkey->ameth->priv_encode(p8, pkey))
H A Devp.h133 const EVP_PKEY_ASN1_METHOD *ameth; member in struct:evp_pkey_st
1013 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
1017 const EVP_PKEY_ASN1_METHOD *ameth);
1024 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
1025 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
1033 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
1038 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
1048 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
1050 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
H A Dpmeth_lib.c133 if (!pkey || !pkey->ameth)
135 id = pkey->ameth->pkey_id;
/external/openssl/crypto/engine/
H A Dtb_asnmth.c182 EVP_PKEY_ASN1_METHOD *ameth; local
190 e->pkey_asn1_meths(e, &ameth, NULL, nids[i]);
191 if (((int)strlen(ameth->pem_str) == len) &&
192 !strncasecmp(ameth->pem_str, str, len))
193 return ameth;
201 const EVP_PKEY_ASN1_METHOD *ameth; member in struct:__anon10400
210 if (lk->ameth)
215 EVP_PKEY_ASN1_METHOD *ameth; local
216 e->pkey_asn1_meths(e, &ameth, NULL, nid);
217 if (((int)strlen(ameth
[all...]
/external/openssl/crypto/pem/
H A Dpem_pkey.c124 const EVP_PKEY_ASN1_METHOD *ameth; local
125 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
126 if (!ameth || !ameth->old_priv_decode)
128 ret=d2i_PrivateKey(ameth->pkey_id,x,&p,len);
145 if (!x->ameth || x->ameth->priv_encode)
150 BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str);
175 || !ret->ameth->param_decode
176 || !ret->ameth
[all...]
H A Dpem_lib.c195 const EVP_PKEY_ASN1_METHOD *ameth; local
207 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
208 if (ameth && ameth->old_priv_decode)
217 const EVP_PKEY_ASN1_METHOD *ameth; local
222 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen);
223 if (ameth)
226 if (ameth->param_decode)
/external/openssl/apps/
H A Dgenpkey.c367 const EVP_PKEY_ASN1_METHOD *ameth; local
377 ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1);
380 if (!ameth && e)
381 ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1);
384 if (!ameth)
392 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth);
H A Ddgst.c511 const EVP_PKEY_ASN1_METHOD *ameth; local
512 ameth = EVP_PKEY_get0_asn1(sigkey);
513 if (ameth)
515 NULL, NULL, &sig_name, ameth);
H A Dopenssl.c632 const EVP_PKEY_ASN1_METHOD *ameth; local
635 ameth = EVP_PKEY_asn1_get0(i);
637 &pinfo, &pem_str, ameth);
H A Dreq.c1621 const EVP_PKEY_ASN1_METHOD *ameth; local
1631 ameth = EVP_PKEY_asn1_find_str(&tmpeng, gstr, len);
1633 if (!ameth)
1640 ameth);
1700 const EVP_PKEY_ASN1_METHOD *ameth; local
1703 ameth = EVP_PKEY_asn1_find(&tmpeng, *pkey_type);
1704 if (!ameth)
1709 EVP_PKEY_asn1_get0_info(NULL, NULL, NULL, NULL, &anam, ameth);
/external/openssl/crypto/pkcs7/
H A Dpk7_lib.c394 if (pkey->ameth && pkey->ameth->pkey_ctrl)
396 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_SIGN,
546 if (!pkey || !pkey->ameth || !pkey->ameth->pkey_ctrl)
553 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_ENCRYPT,
/external/openssl/include/openssl/
H A Devp.h133 const EVP_PKEY_ASN1_METHOD *ameth; member in struct:evp_pkey_st
1013 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
1017 const EVP_PKEY_ASN1_METHOD *ameth);
1024 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
1025 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
1033 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
1038 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
1048 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
1050 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
/external/openssl/ssl/
H A Dssl_ciph.c336 const EVP_PKEY_ASN1_METHOD *ameth; local
338 ameth = EVP_PKEY_asn1_find_str(NULL,pkey_name,-1);
339 if (ameth)
341 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
350 const EVP_PKEY_ASN1_METHOD *ameth; local
353 ameth = EVP_PKEY_asn1_find_str(&tmpeng,pkey_name,-1);
354 if (ameth)
356 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
/external/ipsec-tools/src/racoon/
H A Dcfparse.y2380 "enc=%s ameth=%s hash=%s dhgroup=%s.\n",
2382 TMPALGTYPE2STR(ameth),

Completed in 837 milliseconds