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

/barrelfish-master/lib/openssl-1.0.0d/crypto/asn1/
H A Dameth_lib.c116 const EVP_PKEY_ASN1_METHOD *, ameth);
125 const EVP_PKEY_ASN1_METHOD *, ameth);
204 const EVP_PKEY_ASN1_METHOD *ameth; local
211 ameth = ENGINE_pkey_asn1_find_str(&e, str, len);
212 if (ameth)
218 ameth = NULL;
221 return ameth;
228 ameth = EVP_PKEY_asn1_get0(i);
229 if (ameth->pkey_flags & ASN1_PKEY_ALIAS)
231 if (((int)strlen(ameth
238 EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth) argument
254 EVP_PKEY_ASN1_METHOD *ameth; local
262 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
289 EVP_PKEY_ASN1_METHOD *ameth; local
381 EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) argument
393 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
410 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
421 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
439 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free)(EVP_PKEY *pkey)) argument
445 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 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 Da_sign.c240 if (!pkey->ameth ||
242 pkey->ameth->pkey_id))
252 if (pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL)
H A Da_verify.c155 if (EVP_PKEY_type(pknid) != pkey->ameth->pkey_id)
/barrelfish-master/lib/openssl-1.0.0d/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.h132 const EVP_PKEY_ASN1_METHOD *ameth; member in struct:evp_pkey_st
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,
H A Dpmeth_lib.c132 if (!pkey || !pkey->ameth)
134 id = pkey->ameth->pkey_id;
/barrelfish-master/lib/openssl-1.0.0d/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:__anon1237
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...]
/barrelfish-master/lib/openssl-1.0.0d/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)
/barrelfish-master/lib/openssl-1.0.0d/engines/ccgost/
H A Dgost_eng.c32 static int gost_pkey_asn1_meths (ENGINE *e, EVP_PKEY_ASN1_METHOD **ameth,
229 static int gost_pkey_asn1_meths (ENGINE *e, EVP_PKEY_ASN1_METHOD **ameth, argument
232 if (!ameth)
239 case NID_id_GostR3410_94: *ameth = ameth_GostR3410_94; return 1;
240 case NID_id_GostR3410_2001: *ameth = ameth_GostR3410_2001; return 1;
241 case NID_id_Gost28147_89_MAC: *ameth = ameth_Gost28147_MAC; return 1;
246 *ameth = NULL;
H A Dgost_ameth.c861 int register_ameth_gost (int nid, EVP_PKEY_ASN1_METHOD **ameth, const char* pemstr, const char* info) argument
863 *ameth = EVP_PKEY_asn1_new(nid,
865 if (!*ameth) return 0;
869 EVP_PKEY_asn1_set_free (*ameth, pkey_free_gost94);
870 EVP_PKEY_asn1_set_private (*ameth,
874 EVP_PKEY_asn1_set_param (*ameth,
878 EVP_PKEY_asn1_set_public (*ameth,
883 EVP_PKEY_asn1_set_ctrl (*ameth, pkey_ctrl_gost);
886 EVP_PKEY_asn1_set_free (*ameth, pkey_free_gost01);
887 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 */
/barrelfish-master/lib/openssl-1.0.0d/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.c499 const EVP_PKEY_ASN1_METHOD *ameth; local
500 ameth = EVP_PKEY_get0_asn1(sigkey);
501 if (ameth)
503 NULL, NULL, &sig_name, ameth);
H A Dopenssl.c554 const EVP_PKEY_ASN1_METHOD *ameth; local
557 ameth = EVP_PKEY_asn1_get0(i);
559 &pinfo, &pem_str, ameth);
H A 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);
/barrelfish-master/lib/openssl-1.0.0d/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,
/barrelfish-master/include/openssl/
H A Devp.h132 const EVP_PKEY_ASN1_METHOD *ameth; member in struct:evp_pkey_st
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,
/barrelfish-master/lib/openssl-1.0.0d/ssl/
H A Dssl_ciph.c325 const EVP_PKEY_ASN1_METHOD *ameth; local
327 ameth = EVP_PKEY_asn1_find_str(NULL,pkey_name,-1);
328 if (ameth)
330 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
339 const EVP_PKEY_ASN1_METHOD *ameth; local
342 ameth = EVP_PKEY_asn1_find_str(&tmpeng,pkey_name,-1);
343 if (ameth)
345 EVP_PKEY_asn1_get0_info(&pkey_id, NULL,NULL,NULL,NULL,ameth);
/barrelfish-master/lib/openssl-1.0.0d/crypto/cms/
H A Dcms_env.c204 if (pk->ameth && pk->ameth->pkey_ctrl)
206 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 222 milliseconds