Home
last modified time | relevance | path

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

12

/third_party/openssl/crypto/asn1/
Dameth_lib.c27 const EVP_PKEY_ASN1_METHOD *, ameth);
36 const EVP_PKEY_ASN1_METHOD *, ameth);
110 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in EVP_PKEY_asn1_find_str() local
117 ameth = ENGINE_pkey_asn1_find_str(&e, str, len); in EVP_PKEY_asn1_find_str()
118 if (ameth) { in EVP_PKEY_asn1_find_str()
123 ameth = NULL; in EVP_PKEY_asn1_find_str()
126 return ameth; in EVP_PKEY_asn1_find_str()
132 ameth = EVP_PKEY_asn1_get0(i); in EVP_PKEY_asn1_find_str()
133 if (ameth->pkey_flags & ASN1_PKEY_ALIAS) in EVP_PKEY_asn1_find_str()
135 if ((int)strlen(ameth->pem_str) == len in EVP_PKEY_asn1_find_str()
[all …]
Di2d_evp.c84 if (a->ameth != NULL && a->ameth->param_encode != NULL) in i2d_KeyParams()
85 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
106 if (a->ameth != NULL && a->ameth->old_priv_encode != NULL) { in i2d_PrivateKey()
107 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
109 if (a->ameth != NULL && a->ameth->priv_encode != NULL) { in i2d_PrivateKey()
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()
Dd2i_pr.c103 if (!ret->ameth->old_priv_decode || in ossl_d2i_PrivateKey_legacy()
104 !ret->ameth->old_priv_decode(ret, &p, length)) { in ossl_d2i_PrivateKey_legacy()
105 if (ret->ameth->priv_decode != NULL in ossl_d2i_PrivateKey_legacy()
106 || ret->ameth->priv_decode_ex != NULL) { in ossl_d2i_PrivateKey_legacy()
Da_sign.c170 if (pkey->ameth == NULL) { in ASN1_item_sign_ctx()
214 } else if (pkey->ameth->item_sign) { in ASN1_item_sign_ctx()
215 rv = pkey->ameth->item_sign(ctx, it, data, algor1, algor2, signature); in ASN1_item_sign_ctx()
243 pkey->ameth->pkey_id; in ASN1_item_sign_ctx()
250 if (pkey->ameth->pkey_flags & ASN1_PKEY_SIGPARAM_NULL) in ASN1_item_sign_ctx()
Da_verify.c141 if (pkey->ameth == NULL || pkey->ameth->item_verify == NULL) { in ASN1_item_verify_ctx()
145 ret = pkey->ameth->item_verify(ctx, it, data, alg, signature, pkey); in ASN1_item_verify_ctx()
/third_party/openssl/crypto/engine/
Dtb_asnmth.c145 EVP_PKEY_ASN1_METHOD *ameth; in ENGINE_get_pkey_asn1_meth_str() local
152 e->pkey_asn1_meths(e, &ameth, NULL, nids[i]); in ENGINE_get_pkey_asn1_meth_str()
153 if (ameth != NULL in ENGINE_get_pkey_asn1_meth_str()
154 && ((int)strlen(ameth->pem_str) == len) in ENGINE_get_pkey_asn1_meth_str()
155 && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0) 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()
[all …]
/third_party/openssl/crypto/evp/
Dp_lib.c68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
81 size = pkey->ameth->pkey_security_bits(pkey); in EVP_PKEY_get_security_bits()
211 if (from->ameth != NULL && from->ameth->param_copy != NULL) in EVP_PKEY_copy_parameters()
212 ok = from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
223 else if (pkey->ameth != NULL && pkey->ameth->param_missing != NULL) in EVP_PKEY_missing_parameters()
224 return pkey->ameth->param_missing(pkey); in EVP_PKEY_missing_parameters()
317 if (a->ameth != NULL && a->ameth->param_cmp != NULL) in EVP_PKEY_parameters_eq()
318 return a->ameth->param_cmp(a, b); in EVP_PKEY_parameters_eq()
[all …]
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()
Devp_pkey.c46 if (pkey->ameth->priv_decode_ex != NULL) { in evp_pkcs82pkey_legacy()
47 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) in evp_pkcs82pkey_legacy()
49 } else if (pkey->ameth->priv_decode != NULL) { in evp_pkcs82pkey_legacy()
50 if (!pkey->ameth->priv_decode(pkey, p8)) { in evp_pkcs82pkey_legacy()
137 if (pkey->ameth != NULL) { in EVP_PKEY2PKCS8()
138 if (pkey->ameth->priv_encode != NULL) { in EVP_PKEY2PKCS8()
139 if (!pkey->ameth->priv_encode(p8, pkey)) { in EVP_PKEY2PKCS8()
226 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_get0_type_name() local
233 ameth = EVP_PKEY_get0_asn1(key); in EVP_PKEY_get0_type_name()
234 if (ameth != NULL) in EVP_PKEY_get0_type_name()
[all …]
/third_party/openssl/crypto/pem/
Dpem_pkey.c171 const EVP_PKEY_ASN1_METHOD *ameth; in pem_read_bio_key_legacy() local
172 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
173 if (ameth == NULL || ameth->old_priv_decode == NULL) in pem_read_bio_key_legacy()
175 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, in pem_read_bio_key_legacy()
184 || !ret->ameth->param_decode in pem_read_bio_key_legacy()
185 || !ret->ameth->param_decode(ret, &p, len)) { in pem_read_bio_key_legacy()
314 if (x->ameth == NULL || x->ameth->priv_encode != NULL) in PEM_write_cb_ex_fnsig()
344 if (x->ameth == NULL || x->ameth->old_priv_encode == NULL) { in PEM_write_bio_PrivateKey_traditional()
348 BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str); in PEM_write_bio_PrivateKey_traditional()
376 if (!x->ameth || !x->ameth->param_encode) in PEM_write_fnsig()
[all …]
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()
/third_party/openssl/apps/lib/
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()
/third_party/openssl/test/
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()
/third_party/openssl/crypto/ec/
Decx_meth.c47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
70 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
94 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_priv_decode_ex()
122 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in ecx_priv_encode()
139 if (IS25519(pkey->ameth->pkey_id)) { in ecx_bits()
141 } else if(ISX448(pkey->ameth->pkey_id)) { in ecx_bits()
150 if (IS25519(pkey->ameth->pkey_id)) { in ecx_security_bits()
172 const char *nm = OBJ_nid2ln(pkey->ameth->pkey_id); in ecx_key_print()
222 ECX_KEY *ecx = ossl_ecx_key_op(NULL, arg2, arg1, pkey->ameth->pkey_id, in ecx_ctrl()
[all …]
/third_party/openssl/doc/man3/
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 …]
/third_party/openssl/crypto/x509/
Dx509_set.c201 const EVP_PKEY_ASN1_METHOD *ameth; in x509_sig_info_init() local
218 ameth = EVP_PKEY_asn1_find(NULL, pknid); in x509_sig_info_init()
219 if (ameth == NULL || ameth->siginf_set == NULL in x509_sig_info_init()
220 || !ameth->siginf_set(siginf, alg, sig)) { in x509_sig_info_init()
Dt_x509.c328 const EVP_PKEY_ASN1_METHOD *ameth; in X509_signature_print() local
330 ameth = EVP_PKEY_asn1_find(NULL, pkey_nid); in X509_signature_print()
331 if (ameth && ameth->sig_print) in X509_signature_print()
332 return ameth->sig_print(bp, sigalg, sig, indent + 4, 0); in X509_signature_print()
Dx_pubkey.c326 if (pkey->ameth != NULL) { in X509_PUBKEY_set()
331 if (pkey->ameth->pub_encode != NULL) { in X509_PUBKEY_set()
332 if (!pkey->ameth->pub_encode(pk, pkey)) { in X509_PUBKEY_set()
428 if (pkey->ameth->pub_decode) { in x509_pubkey_decode()
434 if (!pkey->ameth->pub_decode(pkey, key)) in x509_pubkey_decode()
553 if (a->ameth != NULL) { in i2d_PUBKEY()
560 if (a->ameth->pub_encode != NULL && a->ameth->pub_encode(xpk, a)) { in i2d_PUBKEY()
/third_party/openssl/crypto/dh/
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()
/third_party/openssl/ohos_lite/include/openssl/
Devp.h1150 int EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);
1155 const EVP_PKEY_ASN1_METHOD *ameth);
1163 void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);
1164 void EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
1176 void EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
1186 void EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,
1202 void EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,
1204 void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
1207 void EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,
1221 void EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,
[all …]
/third_party/openssl/crypto/pkcs7/
Dpk7_lib.c373 if (pkey->ameth != NULL && pkey->ameth->pkey_ctrl != NULL) { in PKCS7_SIGNER_INFO_set()
374 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()
/third_party/openssl/crypto/cms/
Dcms_env.c127 if (pkey->ameth == NULL || pkey->ameth->pkey_ctrl == NULL) in ossl_cms_env_asn1_ctrl()
129 i = pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_CMS_ENVELOPE, cmd, ri); in ossl_cms_env_asn1_ctrl()
1309 if (pk->ameth && pk->ameth->pkey_ctrl) { in ossl_cms_pkey_get_ri_type()
1311 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_RI_TYPE, 0, &r); in ossl_cms_pkey_get_ri_type()
1322 if (pk->ameth != NULL && pk->ameth->pkey_ctrl != NULL) { in ossl_cms_pkey_is_ri_type_supported()
1325 i = pk->ameth->pkey_ctrl(pk, ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED, in ossl_cms_pkey_is_ri_type_supported()
/third_party/openssl/engines/
De_loader_attic.c520 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in try_decode_PrivateKey() local
536 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, in try_decode_PrivateKey()
539 ameth)) { in try_decode_PrivateKey()
594 ameth = EVP_PKEY_asn1_get0(i); in try_decode_PrivateKey()
596 NULL, ameth) in try_decode_PrivateKey()
685 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in try_decode_params() local
692 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, slen)) != NULL in try_decode_params()
694 ameth)) { in try_decode_params()
706 ameth = EVP_PKEY_asn1_get0(i); in try_decode_params()
708 NULL, ameth) in try_decode_params()
/third_party/openssl/crypto/rsa/
Drsa_ameth.c65 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode()
90 switch (pkey->ameth->pkey_id) { in rsa_pub_decode()
102 if (!EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa)) { in rsa_pub_decode()
133 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa); in old_rsa_priv_decode()
159 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in rsa_priv_encode()
177 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa); in rsa_priv_decode()

12