/third_party/openssl/test/ |
D | pkey_meth_test.c | 27 int pkey_id; in test_asn1_meths() local 32 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in test_asn1_meths() 33 if (pkey_id < prev) in test_asn1_meths() 35 prev = pkey_id; in test_asn1_meths() 44 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, &info, NULL, ameth); in test_asn1_meths() 47 TEST_note("%d : %s : %s", pkey_id, OBJ_nid2ln(pkey_id), info); in test_asn1_meths() 60 int pkey_id; in test_pkey_meths() local 65 EVP_PKEY_meth_get0_info(&pkey_id, NULL, pmeth); in test_pkey_meths() 66 if (pkey_id < prev) in test_pkey_meths() 68 prev = pkey_id; in test_pkey_meths() [all …]
|
D | asn1_internal_test.c | 80 if ((*tmp)->pkey_id < last_pkey_id) { in test_standard_methods() 84 last_pkey_id = (*tmp)->pkey_id; in test_standard_methods() 97 i, (*tmp)->pkey_id, OBJ_nid2sn((*tmp)->pkey_id)); in test_standard_methods() 111 i, (*tmp)->pkey_id, OBJ_nid2sn((*tmp)->pkey_id)); in test_standard_methods()
|
/third_party/openssl/crypto/objects/ |
D | obj_xref.c | 38 return (*a)->pkey_id - (*b)->pkey_id; in sigx_cmp() 63 *ppkey_nid = rv->pkey_id; in OBJ_find_sigid_algs() 74 tmp.pkey_id = pkey_nid; in OBJ_find_sigid_by_algs() 95 int OBJ_add_sigid(int signid, int dig_id, int pkey_id) in OBJ_add_sigid() argument 112 ntr->pkey_id = pkey_id; in OBJ_add_sigid()
|
/third_party/node/deps/openssl/openssl/crypto/objects/ |
D | obj_xref.c | 38 return (*a)->pkey_id - (*b)->pkey_id; in sigx_cmp() 63 *ppkey_nid = rv->pkey_id; in OBJ_find_sigid_algs() 74 tmp.pkey_id = pkey_nid; in OBJ_find_sigid_by_algs() 95 int OBJ_add_sigid(int signid, int dig_id, int pkey_id) in OBJ_add_sigid() argument 112 ntr->pkey_id = pkey_id; in OBJ_add_sigid()
|
/third_party/openssl/crypto/asn1/ |
D | ameth_lib.c | 32 return ((*a)->pkey_id - (*b)->pkey_id); in ameth_cmp() 62 tmp.pkey_id = type; in pkey_asn1_find() 168 tmp.pkey_id = ameth->pkey_id; in EVP_PKEY_asn1_add0() 203 *ppkey_id = ameth->pkey_id; in EVP_PKEY_asn1_get0_info() 230 ameth->pkey_id = id; in EVP_PKEY_asn1_new() 257 int pkey_id = dst->pkey_id; in EVP_PKEY_asn1_copy() local 266 dst->pkey_id = pkey_id; in EVP_PKEY_asn1_copy()
|
D | a_sign.c | 160 int rv, pkey_id; in ASN1_item_sign_ctx() local 239 pkey_id = in ASN1_item_sign_ctx() 243 pkey->ameth->pkey_id; in ASN1_item_sign_ctx() 245 if (!OBJ_find_sigid_by_algs(&signid, EVP_MD_nid(md), pkey_id)) { in ASN1_item_sign_ctx()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | ameth_lib.c | 32 return ((*a)->pkey_id - (*b)->pkey_id); in ameth_cmp() 62 tmp.pkey_id = type; in pkey_asn1_find() 168 tmp.pkey_id = ameth->pkey_id; in EVP_PKEY_asn1_add0() 203 *ppkey_id = ameth->pkey_id; in EVP_PKEY_asn1_get0_info() 230 ameth->pkey_id = id; in EVP_PKEY_asn1_new() 257 int pkey_id = dst->pkey_id; in EVP_PKEY_asn1_copy() local 266 dst->pkey_id = pkey_id; in EVP_PKEY_asn1_copy()
|
D | a_sign.c | 160 int rv, pkey_id; in ASN1_item_sign_ctx() local 239 pkey_id = in ASN1_item_sign_ctx() 243 pkey->ameth->pkey_id; in ASN1_item_sign_ctx() 245 if (!OBJ_find_sigid_by_algs(&signid, EVP_MD_nid(md), pkey_id)) { in ASN1_item_sign_ctx()
|
/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/apps/lib/ |
D | engine.c | 142 int pkey_id = NID_undef; in get_legacy_pkey_id() local 162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id() 164 return pkey_id; in get_legacy_pkey_id()
|
/third_party/node/deps/openssl/openssl/apps/lib/ |
D | engine.c | 142 int pkey_id = NID_undef; in get_legacy_pkey_id() local 162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id() 164 return pkey_id; in get_legacy_pkey_id()
|
/third_party/openssl/crypto/evp/ |
D | dh_ctrl.c | 28 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_paramgen_check() 29 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_paramgen_check() 43 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_param_derive_check() 44 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_param_derive_check()
|
D | pmeth_lib.c | 83 return ((*a)->pkey_id - ((**b)())->pkey_id); in pmeth_func_cmp() 91 return ((*a)->pkey_id - (*b)->pkey_id); in pmeth_cmp() 100 tmp.pkey_id = type; in evp_pkey_meth_find_added_by_application() 117 tmp.pkey_id = type; in EVP_PKEY_meth_find() 136 pmeth->pkey_id = id; in EVP_PKEY_meth_new() 439 *ppkey_id = meth->pkey_id; in EVP_PKEY_meth_get0_info() 446 int pkey_id = dst->pkey_id; in EVP_PKEY_meth_copy() local 452 dst->pkey_id = pkey_id; in EVP_PKEY_meth_copy() 683 return (ctx->pmeth->pkey_id == evp_pkey_name2type(keytype)); in EVP_PKEY_CTX_is_a() 1327 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in evp_pkey_ctx_ctrl_int() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | dh_ctrl.c | 28 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_paramgen_check() 29 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_paramgen_check() 43 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_param_derive_check() 44 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_param_derive_check()
|
D | pmeth_lib.c | 83 return ((*a)->pkey_id - ((**b)())->pkey_id); in pmeth_func_cmp() 91 return ((*a)->pkey_id - (*b)->pkey_id); in pmeth_cmp() 100 tmp.pkey_id = type; in evp_pkey_meth_find_added_by_application() 117 tmp.pkey_id = type; in EVP_PKEY_meth_find() 136 pmeth->pkey_id = id; in EVP_PKEY_meth_new() 439 *ppkey_id = meth->pkey_id; in EVP_PKEY_meth_get0_info() 446 int pkey_id = dst->pkey_id; in EVP_PKEY_meth_copy() local 452 dst->pkey_id = pkey_id; in EVP_PKEY_meth_copy() 683 return (ctx->pmeth->pkey_id == evp_pkey_name2type(keytype)); in EVP_PKEY_CTX_is_a() 1327 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in evp_pkey_ctx_ctrl_int() [all …]
|
/third_party/openssl/engines/ |
D | e_loader_attic.c | 533 int pkey_id; in try_decode_PrivateKey() local 538 && EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in try_decode_PrivateKey() 541 pkey = d2i_PrivateKey_ex(pkey_id, NULL, &blob, len, in try_decode_PrivateKey() 562 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 565 || !EVP_PKEY_asn1_get0_info(&pkey_id, NULL, in try_decode_PrivateKey() 572 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, in try_decode_PrivateKey() 592 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 595 if (!EVP_PKEY_asn1_get0_info(&pkey_id, NULL, &pkey_flags, NULL, in try_decode_PrivateKey() 601 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, &tmp_blob, len, in try_decode_PrivateKey() 689 int pkey_id; in try_decode_params() local [all …]
|
/third_party/node/deps/openssl/openssl/engines/ |
D | e_loader_attic.c | 533 int pkey_id; in try_decode_PrivateKey() local 538 && EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in try_decode_PrivateKey() 541 pkey = d2i_PrivateKey_ex(pkey_id, NULL, &blob, len, in try_decode_PrivateKey() 562 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 565 || !EVP_PKEY_asn1_get0_info(&pkey_id, NULL, in try_decode_PrivateKey() 572 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, in try_decode_PrivateKey() 592 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 595 if (!EVP_PKEY_asn1_get0_info(&pkey_id, NULL, &pkey_flags, NULL, in try_decode_PrivateKey() 601 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, &tmp_blob, len, in try_decode_PrivateKey() 689 int pkey_id; in try_decode_params() local [all …]
|
/third_party/openssl/apps/ |
D | genpkey.c | 285 int pkey_id; in init_gen_str() local 292 pkey_id = get_legacy_pkey_id(libctx, algname, e); in init_gen_str() 293 if (pkey_id != NID_undef) in init_gen_str() 294 ctx = EVP_PKEY_CTX_new_id(pkey_id, e); in init_gen_str()
|
/third_party/node/deps/openssl/openssl/apps/ |
D | genpkey.c | 285 int pkey_id; in init_gen_str() local 292 pkey_id = get_legacy_pkey_id(libctx, algname, e); in init_gen_str() 293 if (pkey_id != NID_undef) in init_gen_str() 294 ctx = EVP_PKEY_CTX_new_id(pkey_id, e); in init_gen_str()
|
/third_party/openssl/crypto/dh/ |
D | dh_ameth.c | 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()
|
/third_party/node/deps/openssl/openssl/crypto/dh/ |
D | dh_ameth.c | 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()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_ameth.c | 65 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()
|
D | rsa_local.h | 151 #define pkey_is_pss(pkey) (pkey->ameth->pkey_id == EVP_PKEY_RSA_PSS) 152 #define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
D | rsa_ameth.c | 65 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()
|