/freebsd-11-stable/crypto/openssl/crypto/evp/ |
H A D | m_sigver.c | 67 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, argument 71 if (ctx->pctx == NULL) 72 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); 73 if (ctx->pctx == NULL) 76 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { 91 if (ctx->pctx->pmeth->verifyctx_init) { 92 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) 94 ctx->pctx->operation = EVP_PKEY_OP_VERIFYCTX; 95 } else if (EVP_PKEY_verify_init(ctx->pctx) < 116 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) argument 122 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) argument 132 EVP_PKEY_CTX *pctx = ctx->pctx; local [all...] |
H A D | digest.c | 232 if (ctx->pctx) { 234 r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG, 336 if (in->pctx) { 337 out->pctx = EVP_PKEY_CTX_dup(in->pctx); 338 if (!out->pctx) { 392 if (ctx->pctx) 393 EVP_PKEY_CTX_free(ctx->pctx);
|
H A D | pmeth_lib.c | 281 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) argument 284 if (!pctx->pmeth || !pctx->pmeth->copy) 288 if (pctx->engine && !ENGINE_init(pctx->engine)) { 297 rctx->pmeth = pctx->pmeth; 299 rctx->engine = pctx->engine; 302 if (pctx->pkey) 303 CRYPTO_add(&pctx->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY); 305 rctx->pkey = pctx [all...] |
H A D | bio_md.c | 176 EVP_MD_CTX *ctx, *dctx, **pctx; local 201 pctx = ptr; 202 *pctx = ctx;
|
H A D | p_lib.c | 433 int indent, ASN1_PCTX *pctx) 436 return pkey->ameth->pub_print(out, pkey, indent, pctx); 442 int indent, ASN1_PCTX *pctx) 445 return pkey->ameth->priv_print(out, pkey, indent, pctx); 451 int indent, ASN1_PCTX *pctx) 454 return pkey->ameth->param_print(out, pkey, indent, pctx); 432 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 441 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 450 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
|
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | tasn_prn.c | 160 int nohdr, const ASN1_PCTX *pctx); 163 const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx); 168 const ASN1_PCTX *pctx); 172 const ASN1_PCTX *pctx); 175 const ASN1_ITEM *it, const ASN1_PCTX *pctx) 178 if (pctx == NULL) 179 pctx = &default_pctx; 180 if (pctx->flags & ASN1_PCTX_FLAGS_NO_STRUCT_NAME) 184 return asn1_item_print_ctx(out, &ifld, indent, it, NULL, sname, 0, pctx); 190 int nohdr, const ASN1_PCTX *pctx) 174 ASN1_item_print(BIO *out, ASN1_VALUE *ifld, int indent, const ASN1_ITEM *it, const ASN1_PCTX *pctx) argument 187 asn1_item_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const ASN1_ITEM *it, const char *fname, const char *sname, int nohdr, const ASN1_PCTX *pctx) argument 321 asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx) argument 376 asn1_print_fsname(BIO *out, int indent, const char *fname, const char *sname, const ASN1_PCTX *pctx) argument 419 asn1_print_boolean_ctx(BIO *out, int boolval, const ASN1_PCTX *pctx) argument 444 asn1_print_integer_ctx(BIO *out, ASN1_INTEGER *str, const ASN1_PCTX *pctx) argument 458 asn1_print_oid_ctx(BIO *out, const ASN1_OBJECT *oid, const ASN1_PCTX *pctx) argument 472 asn1_print_obstring_ctx(BIO *out, ASN1_STRING *str, int indent, const ASN1_PCTX *pctx) argument 487 asn1_primitive_print(BIO *out, ASN1_VALUE **fld, const ASN1_ITEM *it, int indent, const char *fname, const char *sname, const ASN1_PCTX *pctx) argument [all...] |
H A D | asn1_locl.h | 87 ASN1_PCTX *pctx); 91 ASN1_PCTX *pctx); 101 ASN1_PCTX *pctx); 104 int indent, ASN1_PCTX *pctx);
|
H A D | x_long.c | 78 int indent, const ASN1_PCTX *pctx); 215 int indent, const ASN1_PCTX *pctx) 214 long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) argument
|
H A D | x_bignum.c | 82 int indent, const ASN1_PCTX *pctx); 159 int indent, const ASN1_PCTX *pctx) 158 bn_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) argument
|
/freebsd-11-stable/crypto/openssl/crypto/cms/ |
H A D | cms_kari.c | 208 EVP_PKEY_CTX *pctx; local 210 if (kari->pctx) { 211 EVP_PKEY_CTX_free(kari->pctx); 212 kari->pctx = NULL; 216 pctx = EVP_PKEY_CTX_new(pk, NULL); 217 if (!pctx || !EVP_PKEY_derive_init(pctx)) 219 kari->pctx = pctx; 222 if (pctx) 316 EVP_PKEY_CTX *pctx = NULL; local [all...] |
H A D | cms_env.c | 110 EVP_PKEY_CTX *pctx = ri->d.kari->pctx; local 111 if (!pctx) 113 pkey = EVP_PKEY_CTX_get0_pkey(pctx); 150 return ri->d.ktri->pctx; 152 return ri->d.kari->pctx; 216 ktri->pctx = EVP_PKEY_CTX_new(ktri->pkey, NULL); 217 if (!ktri->pctx) 219 if (EVP_PKEY_encrypt_init(ktri->pctx) <= 0) 353 EVP_PKEY_CTX *pctx; local [all...] |
H A D | cms_sd.c | 293 si->pctx = NULL; 385 si->pctx = EVP_PKEY_CTX_new(si->pkey, NULL); 386 if (!si->pctx) 388 if (EVP_PKEY_sign_init(si->pctx) <= 0) 390 if (EVP_PKEY_CTX_set_signature_md(si->pctx, md) <= 0) 392 } else if (EVP_DigestSignInit(&si->mctx, &si->pctx, md, NULL, pk) <= 445 return si->pctx; 581 EVP_PKEY_CTX *pctx = NULL; local 592 if (si->pctx && !cms_sd_asn1_ctrl(si, 0)) 615 } else if (si->pctx) { 676 EVP_PKEY_CTX *pctx; local [all...] |
H A D | cms_asn1.c | 100 if (si->pctx) 203 kari->pctx = NULL; 205 if (kari->pctx) 206 EVP_PKEY_CTX_free(kari->pctx); 257 if (ktri->pctx) 258 EVP_PKEY_CTX_free(ktri->pctx);
|
H A D | cms_lcl.h | 141 EVP_PKEY_CTX *pctx; member in struct:CMS_SignerInfo_st 201 EVP_PKEY_CTX *pctx; member in struct:CMS_KeyTransRecipientInfo_st 211 EVP_PKEY_CTX *pctx; member in struct:CMS_KeyAgreeRecipientInfo_st
|
/freebsd-11-stable/crypto/openssl/engines/ccgost/ |
H A D | gost2001_keyx.c | 115 int pkey_GOST01cp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, argument 120 EVP_PKEY *pubk = EVP_PKEY_CTX_get0_pkey(pctx); 121 struct gost_pmeth_data *data = EVP_PKEY_CTX_get_data(pctx); 127 EVP_PKEY *sec_key = EVP_PKEY_CTX_get0_peerkey(pctx); 198 if (EVP_PKEY_CTX_ctrl(pctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 3, NULL) 219 int pkey_GOST01cp_decrypt(EVP_PKEY_CTX *pctx, unsigned char *key, argument 224 EVP_PKEY *priv = EVP_PKEY_CTX_get0_pkey(pctx); 247 if (EVP_PKEY_derive_set_peer(pctx, eph_key) <= 0) { 254 if (EVP_PKEY_CTX_ctrl(pctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 3, NULL) 260 peerkey = EVP_PKEY_CTX_get0_peerkey(pctx); [all...] |
H A D | gost_pmeth.c | 76 struct gost_pmeth_data *pctx = local 85 pctx->md = (EVP_MD *)p2; 91 *(const EVP_MD **)p2 = pctx->md; 106 pctx->sign_param_nid = (int)p1; 109 pctx->shared_ukm = OPENSSL_malloc((int)p1); 110 if (pctx->shared_ukm == NULL) 112 memcpy(pctx->shared_ukm, p2, (int)p1); 118 return pctx->peer_key_used; 120 return (pctx->peer_key_used = 1);
|
H A D | gost_ameth.c | 365 ASN1_PCTX *pctx, int type) 399 ASN1_PCTX *pctx) 401 return print_gost_94(out, pkey, indent, pctx, 0); 405 ASN1_PCTX *pctx) 407 return print_gost_94(out, pkey, indent, pctx, 1); 411 ASN1_PCTX *pctx) 413 return print_gost_94(out, pkey, indent, pctx, 2); 417 ASN1_PCTX *pctx, int type) 480 ASN1_PCTX *pctx) 482 return print_gost_01(out, pkey, indent, pctx, 364 print_gost_94(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx, int type) argument 398 param_print_gost94(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 404 pub_print_gost94(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 410 priv_print_gost94(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 416 print_gost_01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx, int type) argument 479 param_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 485 pub_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 491 priv_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument [all...] |
/freebsd-11-stable/crypto/openssl/apps/ |
H A D | genpkey.c | 69 static int init_keygen_file(BIO *err, EVP_PKEY_CTX **pctx, 284 static int init_keygen_file(BIO *err, EVP_PKEY_CTX **pctx, argument 290 if (*pctx) { 315 *pctx = ctx; 329 int init_gen_str(BIO *err, EVP_PKEY_CTX **pctx, argument 337 if (*pctx) { 373 *pctx = ctx;
|
/freebsd-11-stable/crypto/openssl/crypto/ec/ |
H A D | ec_ameth.c | 648 static int ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, argument 666 pk = EVP_PKEY_CTX_get0_pkey(pctx); 691 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) 702 static int ecdh_cms_set_kdf_param(EVP_PKEY_CTX *pctx, int eckdf_nid) argument 720 if (EVP_PKEY_CTX_set_ecdh_cofactor_mode(pctx, cofactor) <= 0) 723 if (EVP_PKEY_CTX_set_ecdh_kdf_type(pctx, EVP_PKEY_ECDH_KDF_X9_62) <= 0) 730 if (EVP_PKEY_CTX_set_ecdh_kdf_md(pctx, kdf_md) <= 0) 735 static int ecdh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) argument 750 if (!ecdh_cms_set_kdf_param(pctx, OBJ_obj2nid(alg->algorithm))) { 775 if (EVP_PKEY_CTX_set_ecdh_kdf_outlen(pctx, keyle 798 EVP_PKEY_CTX *pctx; local 826 EVP_PKEY_CTX *pctx; local [all...] |
/freebsd-11-stable/crypto/openssl/crypto/dh/ |
H A D | dh_ameth.c | 653 static int dh_cms_set_peerkey(EVP_PKEY_CTX *pctx, argument 673 pk = EVP_PKEY_CTX_get0_pkey(pctx); 702 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) 714 static int dh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) argument 739 if (EVP_PKEY_CTX_set_dh_kdf_type(pctx, EVP_PKEY_DH_KDF_X9_42) <= 0) 742 if (EVP_PKEY_CTX_set_dh_kdf_md(pctx, EVP_sha1()) <= 0) 765 if (EVP_PKEY_CTX_set_dh_kdf_outlen(pctx, keylen) <= 0) 768 if (EVP_PKEY_CTX_set0_dh_kdf_oid(pctx, 780 if (EVP_PKEY_CTX_set0_dh_kdf_ukm(pctx, dukm, dukmlen) <= 0) 795 EVP_PKEY_CTX *pctx; local 823 EVP_PKEY_CTX *pctx; local [all...] |
/freebsd-11-stable/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_doit.c | 140 EVP_PKEY_CTX *pctx = NULL; local 151 pctx = EVP_PKEY_CTX_new(pkey, NULL); 152 if (!pctx) 155 if (EVP_PKEY_encrypt_init(pctx) <= 0) 158 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT, 164 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0) 174 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0) 185 if (pctx) 186 EVP_PKEY_CTX_free(pctx); 197 EVP_PKEY_CTX *pctx local 922 EVP_PKEY_CTX *pctx; local [all...] |
/freebsd-11-stable/contrib/wpa/hs20/client/ |
H A D | est.c | 388 EVP_PKEY_CTX *pctx = NULL; local 403 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL); 404 if (!pctx) 407 if (EVP_PKEY_keygen_init(pctx) <= 0) 410 if (EVP_PKEY_CTX_set_rsa_keygen_bits(pctx, 2048) <= 0) 413 if (EVP_PKEY_keygen(pctx, &pkey) <= 0) 415 EVP_PKEY_CTX_free(pctx); 416 pctx = NULL; 596 if (pctx) 597 EVP_PKEY_CTX_free(pctx); [all...] |
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | evrpc-internal.h | 121 static void evrpc_hook_associate_meta_(struct evrpc_hook_meta **pctx,
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | xml_libxml2.c | 58 xmlSchemaParserCtxtPtr pctx; local 79 pctx = xmlSchemaNewParserCtxt(xml_schema_fname); 80 xmlSchemaSetParserErrors(pctx, (xmlSchemaValidityErrorFunc) add_str, 83 schema = xmlSchemaParse(pctx); 84 xmlSchemaFreeParserCtxt(pctx);
|
/freebsd-11-stable/crypto/openssl/crypto/cmac/ |
H A D | cm_pmeth.c | 104 if (!CMAC_Update(ctx->pctx->data, data, count))
|