/openssl/test/ |
H A 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() 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() 75 EVP_PKEY_meth_get0_info(&pkey_id, NULL, pmeth); in test_pkey_meths() [all …]
|
H A 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()
|
/openssl/crypto/objects/ |
H A D | obj_xref.c | 48 return (*a)->pkey_id - (*b)->pkey_id; in sigx_cmp() 99 *ppkey_nid = rv->pkey_id; in ossl_obj_find_sigid_algs() 120 tmp.pkey_id = pkey_nid; in OBJ_find_sigid_by_algs() 147 int OBJ_add_sigid(int signid, int dig_id, int pkey_id) in OBJ_add_sigid() argument 152 if (signid == NID_undef || pkey_id == NID_undef) in OBJ_add_sigid() 162 ntr->pkey_id = pkey_id; in OBJ_add_sigid() 172 ret = dnid == dig_id && pnid == pkey_id; in OBJ_add_sigid()
|
H A D | obj_xref.h | 17 int pkey_id; member
|
/openssl/crypto/asn1/ |
H A 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() 228 ameth->pkey_id = id; in EVP_PKEY_asn1_new() 254 int pkey_id = dst->pkey_id; in EVP_PKEY_asn1_copy() local 263 dst->pkey_id = pkey_id; in EVP_PKEY_asn1_copy()
|
H A D | a_sign.c | 156 int rv, pkey_id; in ASN1_item_sign_ctx() local 235 pkey_id = in ASN1_item_sign_ctx() 239 pkey->ameth->pkey_id; in ASN1_item_sign_ctx() 241 if (!OBJ_find_sigid_by_algs(&signid, EVP_MD_nid(md), pkey_id)) { in ASN1_item_sign_ctx()
|
/openssl/crypto/ec/ |
H A D | ecx_meth.c | 68 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode() 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() 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() 331 *len = KEYLENID(pkey->ameth->pkey_id); in ecx_get_pub_key() 973 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen25519() [all …]
|
H A D | ecx_backend.h | 20 #define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
|
/openssl/apps/lib/ |
H A 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()
|
/openssl/crypto/evp/ |
H A 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()
|
H A D | pmeth_lib.c | 81 return ((*a)->pkey_id - ((**b)())->pkey_id); in pmeth_func_cmp() 89 return ((*a)->pkey_id - (*b)->pkey_id); in pmeth_cmp() 98 tmp.pkey_id = type; in evp_pkey_meth_find_added_by_application() 115 tmp.pkey_id = type; in EVP_PKEY_meth_find() 132 pmeth->pkey_id = id; in EVP_PKEY_meth_new() 416 *ppkey_id = meth->pkey_id; in EVP_PKEY_meth_get0_info() 423 int pkey_id = dst->pkey_id; in EVP_PKEY_meth_copy() local 429 dst->pkey_id = pkey_id; in EVP_PKEY_meth_copy() 658 return (ctx->pmeth->pkey_id == evp_pkey_name2type(keytype)); in EVP_PKEY_CTX_is_a() 1322 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in evp_pkey_ctx_ctrl_int() [all …]
|
H A D | dsa_ctrl.c | 25 if (ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_DSA) in dsa_paramgen_check()
|
H A D | ec_ctrl.c | 34 && ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_EC) in evp_pkey_ctx_getset_ecdh_param_checks()
|
/openssl/engines/ |
H A D | e_loader_attic.c | 530 int pkey_id; in try_decode_PrivateKey() local 538 pkey = d2i_PrivateKey_ex(pkey_id, NULL, &blob, len, in try_decode_PrivateKey() 559 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 562 || !EVP_PKEY_asn1_get0_info(&pkey_id, NULL, in try_decode_PrivateKey() 569 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, in try_decode_PrivateKey() 589 int pkey_id, pkey_flags; in try_decode_PrivateKey() local 598 tmp_pkey = d2i_PrivateKey_ex(pkey_id, NULL, &tmp_blob, len, in try_decode_PrivateKey() 686 int pkey_id; in try_decode_params() local 693 pkey = d2i_KeyParams(pkey_id, NULL, &blob, len); in try_decode_params() 701 int pkey_id, pkey_flags; in try_decode_params() local [all …]
|
/openssl/apps/ |
H A D | genpkey.c | 362 int pkey_id; in init_gen_str() local 369 pkey_id = get_legacy_pkey_id(libctx, algname, e); in init_gen_str() 370 if (pkey_id != NID_undef) in init_gen_str() 371 ctx = EVP_PKEY_CTX_new_id(pkey_id, e); in init_gen_str()
|
H A D | list.c | 1145 int pkey_id, pkey_base_id, pkey_flags; in list_pkey() local 1148 EVP_PKEY_asn1_get0_info(&pkey_id, &pkey_base_id, &pkey_flags, in list_pkey() 1151 BIO_printf(bio_out, " Name: %s\n", OBJ_nid2ln(pkey_id)); in list_pkey() 1159 BIO_printf(bio_out, "\tOID: %s\n", OBJ_nid2ln(pkey_id)); in list_pkey() 1182 int pkey_id, pkey_flags; in list_pkey_meth() local 1184 EVP_PKEY_meth_get0_info(&pkey_id, &pkey_flags, pmeth); in list_pkey_meth() 1185 BIO_printf(bio_out, " %s\n", OBJ_nid2ln(pkey_id)); in list_pkey_meth()
|
H A D | req.c | 1612 int pkey_id = get_legacy_pkey_id(app_get0_libctx(), *pkeytype, in set_keygen_ctx() local 1615 if (pkey_id != NID_undef) in set_keygen_ctx() 1616 gctx = EVP_PKEY_CTX_new_id(pkey_id, keygen_engine); in set_keygen_ctx()
|
/openssl/crypto/dh/ |
H A 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()
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 67 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode() 93 switch (pkey->ameth->pkey_id) { in rsa_pub_decode() 105 if (!EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa)) { in rsa_pub_decode() 136 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa); in old_rsa_priv_decode() 162 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in rsa_priv_encode() 180 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa); in rsa_priv_decode()
|
H A 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)
|
/openssl/include/crypto/ |
H A D | ecx.h | 149 int pkey_id, ecx_key_op_t op,
|
H A D | asn1.h | 24 int pkey_id; member
|
/openssl/ssl/ |
H A D | ssl_ciph.c | 286 int pkey_id = 0; in get_optional_pkey_id() local 288 if (ameth && EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id() 290 return pkey_id; in get_optional_pkey_id() 300 int pkey_id = 0; in get_optional_pkey_id() local 303 if (EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id() 305 pkey_id = 0; in get_optional_pkey_id() 308 return pkey_id; in get_optional_pkey_id()
|
/openssl/include/openssl/ |
H A D | objects.h | 176 int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
|
/openssl/doc/man3/ |
H A D | OBJ_nid2obj.pod | 38 int OBJ_add_sigid(int signid, int dig_id, int pkey_id); 104 Algorithm", I<dig_id> is the NID for the digest algorithm and I<pkey_id> is the
|