Home
last modified time | relevance | path

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

12

/freebsd/crypto/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()
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 …]
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()
/freebsd/crypto/openssl/crypto/objects/
H A Dobj_xref.c38 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()
H A Dobj_xref.h17 int pkey_id; member
/freebsd/crypto/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()
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()
H A Da_sign.c160 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()
/freebsd/crypto/openssl/crypto/ec/
H A 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 …]
H A Decx_backend.h20 #define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
/freebsd/crypto/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()
/freebsd/crypto/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.c83 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()
440 *ppkey_id = meth->pkey_id; in EVP_PKEY_meth_get0_info()
447 int pkey_id = dst->pkey_id; in EVP_PKEY_meth_copy() local
453 dst->pkey_id = pkey_id; in EVP_PKEY_meth_copy()
684 return (ctx->pmeth->pkey_id == evp_pkey_name2type(keytype)); in EVP_PKEY_CTX_is_a()
1400 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()
/freebsd/crypto/openssl/engines/
H A De_loader_attic.c533 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 …]
/freebsd/crypto/openssl/apps/
H A Dgenpkey.c287 int pkey_id; in init_gen_str() local
294 pkey_id = get_legacy_pkey_id(libctx, algname, e); in init_gen_str()
295 if (pkey_id != NID_undef) in init_gen_str()
296 ctx = EVP_PKEY_CTX_new_id(pkey_id, e); in init_gen_str()
H A Dlist.c1095 int pkey_id, pkey_base_id, pkey_flags; in list_pkey() local
1098 EVP_PKEY_asn1_get0_info(&pkey_id, &pkey_base_id, &pkey_flags, in list_pkey()
1101 BIO_printf(bio_out, " Name: %s\n", OBJ_nid2ln(pkey_id)); in list_pkey()
1109 BIO_printf(bio_out, "\tOID: %s\n", OBJ_nid2ln(pkey_id)); in list_pkey()
1132 int pkey_id, pkey_flags; in list_pkey_meth() local
1134 EVP_PKEY_meth_get0_info(&pkey_id, &pkey_flags, pmeth); in list_pkey_meth()
1135 BIO_printf(bio_out, " %s\n", OBJ_nid2ln(pkey_id)); in list_pkey_meth()
H A Dreq.c1628 int pkey_id = get_legacy_pkey_id(app_get0_libctx(), *pkeytype, in set_keygen_ctx() local
1631 if (pkey_id != NID_undef) in set_keygen_ctx()
1632 gctx = EVP_PKEY_CTX_new_id(pkey_id, keygen_engine); in set_keygen_ctx()
/freebsd/crypto/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()
/freebsd/crypto/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)
/freebsd/crypto/openssl/ssl/
H A Dssl_ciph.c295 int pkey_id = 0; in get_optional_pkey_id() local
297 if (ameth && EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id()
299 return pkey_id; in get_optional_pkey_id()
309 int pkey_id = 0; in get_optional_pkey_id() local
312 if (EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id()
314 pkey_id = 0; in get_optional_pkey_id()
317 return pkey_id; in get_optional_pkey_id()
/freebsd/crypto/openssl/include/crypto/
H A Decx.h136 int pkey_id, ecx_key_op_t op,
H A Dasn1.h24 int pkey_id; member
/freebsd/crypto/openssl/include/openssl/
H A Dobjects.h176 int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
/freebsd/crypto/openssl/doc/man3/
H A DOBJ_nid2obj.pod38 int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
103 Algorithm", I<dig_id> is the NID for the digest algorithm and I<pkey_id> is the

12