/third_party/openssl/crypto/asn1/ |
D | ameth_lib.c | 27 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 …]
|
D | i2d_evp.c | 84 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()
|
D | d2i_param.c | 32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams() 37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | ameth_lib.c | 27 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 …]
|
D | i2d_evp.c | 84 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()
|
D | d2i_param.c | 32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams() 37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams()
|
/third_party/openssl/crypto/engine/ |
D | tb_asnmth.c | 145 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/node/deps/openssl/openssl/crypto/engine/ |
D | tb_asnmth.c | 145 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/node/deps/openssl/openssl/crypto/evp/ |
D | p_lib.c | 68 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 …]
|
D | pmeth_check.c | 71 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()
|
D | evp_pkey.c | 46 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/evp/ |
D | p_lib.c | 68 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 …]
|
D | pmeth_check.c | 71 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()
|
D | evp_pkey.c | 46 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/node/deps/openssl/openssl/crypto/pem/ |
D | pem_pkey.c | 175 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() 179 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, 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() 389 if (!x->ameth || !x->ameth->param_encode) in PEM_write_fnsig() [all …]
|
/third_party/openssl/crypto/pem/ |
D | pem_pkey.c | 175 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() 179 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, 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() 389 if (!x->ameth || !x->ameth->param_encode) in PEM_write_fnsig() [all …]
|
/third_party/openssl/apps/lib/ |
D | engine.c | 140 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/node/deps/openssl/openssl/apps/lib/ |
D | engine.c | 140 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/ |
D | pkey_meth_test.c | 28 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/node/deps/openssl/openssl/crypto/ec/ |
D | ecx_meth.c | 47 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/crypto/ec/ |
D | ecx_meth.c | 47 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/ |
D | EVP_PKEY_ASN1_METHOD.pod | 40 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/ |
D | x509_set.c | 201 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()
|
/third_party/node/deps/openssl/openssl/crypto/x509/ |
D | x509_set.c | 201 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()
|
/third_party/openssl/crypto/dh/ |
D | dh_ameth.c | 38 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()
|