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

/freebsd-10.0-release/crypto/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
269 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
296 EVP_PKEY_ASN1_METHOD *ameth; local
396 EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) argument
408 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
425 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
436 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
454 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free)(EVP_PKEY *pkey)) argument
460 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.c171 if (!pkey->ameth || !pkey->ameth->item_verify)
176 ret = pkey->ameth->item_verify(&ctx, it, asn, a,
197 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);
/freebsd-10.0-release/crypto/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
1012 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
1016 const EVP_PKEY_ASN1_METHOD *ameth);
1023 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
1024 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
1032 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
1037 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
1047 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
1049 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;
/freebsd-10.0-release/crypto/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:__anon5121
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...]
/freebsd-10.0-release/crypto/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)
/freebsd-10.0-release/crypto/openssl/engines/ccgost/
H A Dgost_eng.c32 static int gost_pkey_asn1_meths (ENGINE *e, EVP_PKEY_ASN1_METHOD **ameth,
241 static int gost_pkey_asn1_meths (ENGINE *e, EVP_PKEY_ASN1_METHOD **ameth, argument
244 if (!ameth)
251 case NID_id_GostR3410_94: *ameth = ameth_GostR3410_94; return 1;
252 case NID_id_GostR3410_2001: *ameth = ameth_GostR3410_2001; return 1;
253 case NID_id_Gost28147_89_MAC: *ameth = ameth_Gost28147_MAC; return 1;
258 *ameth = NULL;
H A Dgost_ameth.c898 int register_ameth_gost (int nid, EVP_PKEY_ASN1_METHOD **ameth, const char* pemstr, const char* info) argument
900 *ameth = EVP_PKEY_asn1_new(nid,
902 if (!*ameth) return 0;
906 EVP_PKEY_asn1_set_free (*ameth, pkey_free_gost94);
907 EVP_PKEY_asn1_set_private (*ameth,
911 EVP_PKEY_asn1_set_param (*ameth,
915 EVP_PKEY_asn1_set_public (*ameth,
920 EVP_PKEY_asn1_set_ctrl (*ameth, pkey_ctrl_gost);
923 EVP_PKEY_asn1_set_free (*ameth, pkey_free_gost01);
924 EVP_PKEY_asn1_set_private (*ameth,
[all...]
H A Dgost_lcl.h34 int register_ameth_gost (int nid, EVP_PKEY_ASN1_METHOD **ameth, const char* pemstr, const char* info);
210 /* from ameth.c */
/freebsd-10.0-release/crypto/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.c513 const EVP_PKEY_ASN1_METHOD *ameth; local
514 ameth = EVP_PKEY_get0_asn1(sigkey);
515 if (ameth)
517 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.c1631 const EVP_PKEY_ASN1_METHOD *ameth; local
1641 ameth = EVP_PKEY_asn1_find_str(&tmpeng, gstr, len);
1643 if (!ameth)
1650 ameth);
1712 const EVP_PKEY_ASN1_METHOD *ameth; local
1715 ameth = EVP_PKEY_asn1_find(&tmpeng, *pkey_type);
1716 if (!ameth)
1721 EVP_PKEY_asn1_get0_info(NULL, NULL, NULL, NULL, &anam, ameth);
/freebsd-10.0-release/crypto/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,
/freebsd-10.0-release/crypto/openssl/ssl/
H A Dssl_ciph.c338 const EVP_PKEY_ASN1_METHOD *ameth; local
340 ameth = EVP_PKEY_asn1_find_str(NULL,pkey_name,-1);
341 if (ameth)
343 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
352 const EVP_PKEY_ASN1_METHOD *ameth; local
355 ameth = EVP_PKEY_asn1_find_str(&tmpeng,pkey_name,-1);
356 if (ameth)
358 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
/freebsd-10.0-release/crypto/openssl/crypto/cms/
H A Dcms_env.c205 if (pk->ameth && pk->ameth->pkey_ctrl)
207 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_ENVELOPE,
H A Dcms_sd.c388 if (pk->ameth && pk->ameth->pkey_ctrl)
390 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_SIGN,

Completed in 172 milliseconds