Home
last modified time | relevance | path

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

12

/openssl/crypto/asn1/
H A Dameth_lib.c118 if (ameth) { in EVP_PKEY_asn1_find_str()
126 return ameth; in EVP_PKEY_asn1_find_str()
137 return ameth; in EVP_PKEY_asn1_find_str()
185 if (ameth == NULL) in EVP_PKEY_asn1_add_alias()
200 if (!ameth) in EVP_PKEY_asn1_get0_info()
217 return pkey->ameth; in EVP_PKEY_get0_asn1()
223 EVP_PKEY_ASN1_METHOD *ameth = OPENSSL_zalloc(sizeof(*ameth)); in EVP_PKEY_asn1_new() local
225 if (ameth == NULL) in EVP_PKEY_asn1_new()
228 ameth->pkey_id = id; in EVP_PKEY_asn1_new()
244 return ameth; in EVP_PKEY_asn1_new()
[all …]
H A Di2d_evp.c83 if (a->ameth != NULL && a->ameth->param_encode != NULL) in i2d_KeyParams()
84 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
105 if (a->ameth != NULL && a->ameth->old_priv_encode != NULL) { in i2d_PrivateKey()
106 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
108 if (a->ameth != NULL && a->ameth->priv_encode != NULL) { in i2d_PrivateKey()
H A Dd2i_param.c32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams()
37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams()
H A Da_sign.c166 if (pkey->ameth == NULL) { in ASN1_item_sign_ctx()
210 } else if (pkey->ameth->item_sign) { in ASN1_item_sign_ctx()
211 rv = pkey->ameth->item_sign(ctx, it, data, algor1, algor2, signature); in ASN1_item_sign_ctx()
239 pkey->ameth->pkey_id; in ASN1_item_sign_ctx()
246 paramtype = pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL ? in ASN1_item_sign_ctx()
H A Dd2i_pr.c116 if (!ret->ameth->old_priv_decode || in ossl_d2i_PrivateKey_legacy()
117 !ret->ameth->old_priv_decode(ret, &p, length)) { in ossl_d2i_PrivateKey_legacy()
118 if (ret->ameth->priv_decode != NULL in ossl_d2i_PrivateKey_legacy()
119 || ret->ameth->priv_decode_ex != NULL) { in ossl_d2i_PrivateKey_legacy()
H A Da_verify.c139 if (pkey->ameth == NULL || pkey->ameth->item_verify == NULL) { in ASN1_item_verify_ctx()
143 ret = pkey->ameth->item_verify(ctx, it, data, alg, signature, pkey); in ASN1_item_verify_ctx()
/openssl/crypto/engine/
H A Dtb_asnmth.c145 EVP_PKEY_ASN1_METHOD *ameth; in ENGINE_get_pkey_asn1_meth_str() local
153 if (ameth != NULL in ENGINE_get_pkey_asn1_meth_str()
156 return ameth; in ENGINE_get_pkey_asn1_meth_str()
163 const EVP_PKEY_ASN1_METHOD *ameth; member
172 if (lk->ameth) in look_str_cb()
176 EVP_PKEY_ASN1_METHOD *ameth; in look_str_cb() local
177 e->pkey_asn1_meths(e, &ameth, NULL, nid); in look_str_cb()
178 if (ameth != NULL in look_str_cb()
182 lk->ameth = ameth; in look_str_cb()
194 fstr.ameth = NULL; in ENGINE_pkey_asn1_find_str()
[all …]
/openssl/crypto/evp/
H A Dp_lib.c68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
84 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
219 if (from->ameth != NULL && from->ameth->param_copy != NULL) in EVP_PKEY_copy_parameters()
231 else if (pkey->ameth != NULL && pkey->ameth->param_missing != NULL) in EVP_PKEY_missing_parameters()
325 if (a->ameth != NULL && a->ameth->param_cmp != NULL) in EVP_PKEY_parameters_eq()
982 if (ameth) in EVP_PKEY_type()
1587 pkey->ameth = ameth; in pkey_set_type()
1703 const EVP_PKEY_ASN1_METHOD *ameth = pkey->ameth; in EVP_PKEY_dup() local
1705 if (ameth == NULL || ameth->copy == NULL) { in EVP_PKEY_dup()
1736 const EVP_PKEY_ASN1_METHOD *ameth = x->ameth; in evp_pkey_free_legacy() local
[all …]
H A Dpmeth_check.c71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) in evp_pkey_public_check_combined()
74 return pkey->ameth->pkey_public_check(pkey); in evp_pkey_public_check_combined()
116 if (pkey->ameth == NULL || pkey->ameth->pkey_param_check == NULL) in evp_pkey_param_check_combined()
119 return pkey->ameth->pkey_param_check(pkey); in evp_pkey_param_check_combined()
184 if (pkey->ameth == NULL || pkey->ameth->pkey_check == NULL) in EVP_PKEY_pairwise_check()
187 return pkey->ameth->pkey_check(pkey); in EVP_PKEY_pairwise_check()
H A Devp_pkey.c47 if (pkey->ameth->priv_decode_ex != NULL) { in evp_pkcs82pkey_legacy()
48 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) in evp_pkcs82pkey_legacy()
50 } else if (pkey->ameth->priv_decode != NULL) { in evp_pkcs82pkey_legacy()
51 if (!pkey->ameth->priv_decode(pkey, p8)) { in evp_pkcs82pkey_legacy()
158 if (pkey->ameth != NULL) { in EVP_PKEY2PKCS8()
159 if (pkey->ameth->priv_encode != NULL) { in EVP_PKEY2PKCS8()
160 if (!pkey->ameth->priv_encode(p8, pkey)) { in EVP_PKEY2PKCS8()
247 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_get0_type_name() local
254 ameth = EVP_PKEY_get0_asn1(key); in EVP_PKEY_get0_type_name()
255 if (ameth != NULL) in EVP_PKEY_get0_type_name()
[all …]
/openssl/test/
H A Dpkey_meth_test.c28 const EVP_PKEY_ASN1_METHOD *ameth; in test_asn1_meths() local
31 ameth = EVP_PKEY_asn1_get0(i); in test_asn1_meths()
32 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in test_asn1_meths()
43 ameth = EVP_PKEY_asn1_get0(i); in test_asn1_meths()
44 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, &info, NULL, ameth); in test_asn1_meths()
/openssl/crypto/pem/
H A Dpem_pkey.c175 const EVP_PKEY_ASN1_METHOD *ameth; in pem_read_bio_key_legacy() local
176 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
177 if (ameth == NULL || ameth->old_priv_decode == NULL) in pem_read_bio_key_legacy()
192 || !ret->ameth->param_decode in pem_read_bio_key_legacy()
193 || !ret->ameth->param_decode(ret, &p, len)) { in pem_read_bio_key_legacy()
323 if (x != NULL && (x->ameth == NULL || x->ameth->priv_encode != NULL)) in PEM_write_cb_ex_fnsig()
356 if (x->ameth == NULL || x->ameth->old_priv_encode == NULL) { in PEM_write_bio_PrivateKey_traditional()
361 BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str); in PEM_write_bio_PrivateKey_traditional()
398 if (!x->ameth || !x->ameth->param_encode) in PEM_write_fnsig()
401 BIO_snprintf(pem_str, 80, "%s PARAMETERS", x->ameth->pem_str); in PEM_write_fnsig()
[all …]
H A Dpem_lib.c136 const EVP_PKEY_ASN1_METHOD *ameth; in check_pem() local
147 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in check_pem()
148 if (ameth && ameth->old_priv_decode) in check_pem()
156 const EVP_PKEY_ASN1_METHOD *ameth; in check_pem() local
160 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen); in check_pem()
161 if (ameth) { in check_pem()
163 if (ameth->param_decode) in check_pem()
/openssl/apps/lib/
H A Dengine.c140 const EVP_PKEY_ASN1_METHOD *ameth; in get_legacy_pkey_id() local
145 ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1); in get_legacy_pkey_id()
150 if (ameth == NULL && e != NULL) in get_legacy_pkey_id()
151 ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1); in get_legacy_pkey_id()
156 ameth = NULL; in get_legacy_pkey_id()
159 if (ameth == NULL) in get_legacy_pkey_id()
162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id()
/openssl/crypto/ec/
H A Decx_meth.c68 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
92 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_priv_decode_ex()
137 if (IS25519(pkey->ameth->pkey_id)) { in ecx_bits()
139 } else if (ISX448(pkey->ameth->pkey_id)) { in ecx_bits()
148 if (IS25519(pkey->ameth->pkey_id)) { in ecx_security_bits()
170 const char *nm = OBJ_nid2ln(pkey->ameth->pkey_id); in ecx_key_print()
272 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_set_priv_key()
302 *len = KEYLENID(pkey->ameth->pkey_id); in ecx_get_priv_key()
311 *len = KEYLENID(pkey->ameth->pkey_id); in ecx_get_priv_key()
323 *len = KEYLENID(pkey->ameth->pkey_id); in ecx_get_pub_key()
[all …]
H A Decx_backend.h20 #define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
/openssl/doc/man3/
H A DEVP_PKEY_ASN1_METHOD.pod40 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
41 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
44 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
56 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
66 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
82 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
84 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
87 void EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,
101 void EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,
106 void EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth,
[all …]
/openssl/crypto/dh/
H A Ddh_ameth.c38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp()
50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp()
102 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_pub_decode()
147 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in dh_pub_encode()
171 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_priv_decode()
215 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in dh_priv_encode()
235 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_param_decode()
318 a->ameth != &ossl_dhx_asn1_meth); in dh_cmp_parameters()
354 from->ameth == &ossl_dhx_asn1_meth); in dh_copy_parameters()
/openssl/crypto/x509/
H A Dx509_set.c217 const EVP_PKEY_ASN1_METHOD *ameth; in x509_sig_info_init() local
234 ameth = EVP_PKEY_asn1_find(NULL, pknid); in x509_sig_info_init()
235 if (ameth != NULL && ameth->siginf_set != NULL in x509_sig_info_init()
236 && ameth->siginf_set(siginf, alg, sig)) in x509_sig_info_init()
H A Dv3_ac_tgt.c145 const EVP_PKEY_ASN1_METHOD *ameth; in i2r_OBJECT_DIGEST_INFO() local
147 ameth = EVP_PKEY_asn1_find(NULL, pkey_nid); in i2r_OBJECT_DIGEST_INFO()
148 if (ameth && ameth->sig_print) in i2r_OBJECT_DIGEST_INFO()
149 return ameth->sig_print(out, digalg, sig, indent + 4, 0); in i2r_OBJECT_DIGEST_INFO()
H A Dt_x509.c302 const EVP_PKEY_ASN1_METHOD *ameth; in X509_signature_print() local
304 ameth = EVP_PKEY_asn1_find(NULL, pkey_nid); in X509_signature_print()
305 if (ameth && ameth->sig_print) in X509_signature_print()
306 return ameth->sig_print(bp, sigalg, sig, indent + 4, 0); in X509_signature_print()
H A Dx_pubkey.c332 if (pkey->ameth != NULL) { in X509_PUBKEY_set()
337 if (pkey->ameth->pub_encode != NULL) { in X509_PUBKEY_set()
338 if (!pkey->ameth->pub_encode(pk, pkey)) { in X509_PUBKEY_set()
434 if (pkey->ameth->pub_decode) { in x509_pubkey_decode()
440 if (!pkey->ameth->pub_decode(pkey, key)) in x509_pubkey_decode()
557 if (a->ameth != NULL) { in i2d_PUBKEY()
564 if (a->ameth->pub_encode != NULL && a->ameth->pub_encode(xpk, a)) { in i2d_PUBKEY()
/openssl/crypto/pkcs7/
H A Dpk7_lib.c375 if (pkey->ameth != NULL && pkey->ameth->pkey_ctrl != NULL) { in PKCS7_SIGNER_INFO_set()
376 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_SIGN, 0, p7i); in PKCS7_SIGNER_INFO_set()
644 if (pkey->ameth == NULL || pkey->ameth->pkey_ctrl == NULL) { in PKCS7_RECIP_INFO_set()
650 ret = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_PKCS7_ENCRYPT, 0, p7i); in PKCS7_RECIP_INFO_set()
/openssl/crypto/cms/
H A Dcms_env.c135 if (pkey->ameth == NULL || pkey->ameth->pkey_ctrl == NULL) in ossl_cms_env_asn1_ctrl()
137 i = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_CMS_ENVELOPE, cmd, ri); in ossl_cms_env_asn1_ctrl()
1352 if (pk->ameth && pk->ameth->pkey_ctrl) { in ossl_cms_pkey_get_ri_type()
1354 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_RI_TYPE, 0, &r); in ossl_cms_pkey_get_ri_type()
1365 if (pk->ameth != NULL && pk->ameth->pkey_ctrl != NULL) { in ossl_cms_pkey_is_ri_type_supported()
1368 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED, in ossl_cms_pkey_is_ri_type_supported()
/openssl/engines/
H A De_loader_attic.c517 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in try_decode_PrivateKey() local
533 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, in try_decode_PrivateKey()
536 ameth)) { in try_decode_PrivateKey()
591 ameth = EVP_PKEY_asn1_get0(i); in try_decode_PrivateKey()
593 NULL, ameth) in try_decode_PrivateKey()
682 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in try_decode_params() local
689 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, slen)) != NULL in try_decode_params()
691 ameth)) { in try_decode_params()
703 ameth = EVP_PKEY_asn1_get0(i); in try_decode_params()
705 NULL, ameth) in try_decode_params()

Completed in 58 milliseconds

12