/freebsd/crypto/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() 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 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()
|
/freebsd/crypto/openssl/crypto/objects/ |
H A 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()
|
H A D | obj_xref.h | 17 int pkey_id; member
|
/freebsd/crypto/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() 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 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()
|
/freebsd/crypto/openssl/crypto/ec/ |
H A 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 …]
|
H A D | ecx_backend.h | 20 #define KEYLEN(p) KEYLENID((p)->ameth->pkey_id)
|
/freebsd/crypto/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()
|
/freebsd/crypto/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 | 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() 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 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()
|
/freebsd/crypto/openssl/engines/ |
H A 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 …]
|
/freebsd/crypto/openssl/apps/ |
H A D | genpkey.c | 287 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 D | list.c | 1095 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 D | req.c | 1628 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 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()
|
/freebsd/crypto/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)
|
/freebsd/crypto/openssl/ssl/ |
H A D | ssl_ciph.c | 295 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 D | ecx.h | 136 int pkey_id, ecx_key_op_t op,
|
H A D | asn1.h | 24 int pkey_id; member
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | objects.h | 176 int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OBJ_nid2obj.pod | 38 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
|