Home
last modified time | relevance | path

Searched refs:pkey_id (Results 1 – 25 of 32) sorted by relevance

12

/openssl/test/
H A Dpkey_meth_test.c27 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 Dasn1_internal_test.c80 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 Dobj_xref.c48 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 Dobj_xref.h17 int pkey_id; member
/openssl/crypto/asn1/
H A Dameth_lib.c32 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 Da_sign.c156 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 Decx_meth.c68 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 Decx_backend.h20 #define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
/openssl/apps/lib/
H A Dengine.c142 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 Ddh_ctrl.c28 && 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 Dpmeth_lib.c81 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 Ddsa_ctrl.c25 if (ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_DSA) in dsa_paramgen_check()
H A Dec_ctrl.c34 && ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_EC) in evp_pkey_ctx_getset_ecdh_param_checks()
/openssl/engines/
H A De_loader_attic.c530 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 Dgenpkey.c362 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 Dlist.c1145 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 Dreq.c1612 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 Ddh_ameth.c102 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 Drsa_ameth.c67 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 Drsa_local.h151 #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 Decx.h149 int pkey_id, ecx_key_op_t op,
H A Dasn1.h24 int pkey_id; member
/openssl/ssl/
H A Dssl_ciph.c286 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 Dobjects.h176 int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
/openssl/doc/man3/
H A DOBJ_nid2obj.pod38 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

Completed in 78 milliseconds

12