/freebsd-11-stable/crypto/openssl/crypto/evp/ |
H A D | evp.h | 275 EVP_PKEY_CTX *pctx; member in struct:env_md_ctx_st 657 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 662 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 1001 int indent, ASN1_PCTX *pctx); 1003 int indent, ASN1_PCTX *pctx); 1005 int indent, ASN1_PCTX *pctx); 1092 int indent, ASN1_PCTX *pctx), 1104 ASN1_PCTX *pctx)); 1119 ASN1_PCTX *pctx));
|
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...] |
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | asn1.h | 342 const ASN1_PCTX *pctx); 1133 const ASN1_ITEM *it, const ASN1_PCTX *pctx);
|
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
|
H A D | ameth_lib.c | 421 int indent, ASN1_PCTX *pctx), 442 ASN1_PCTX *pctx)) 462 int indent, ASN1_PCTX *pctx)) 412 EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, int (*pub_decode) (EVP_PKEY *pk, X509_PUBKEY *pub), int (*pub_encode) (X509_PUBKEY *pub, const EVP_PKEY *pk), int (*pub_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*pub_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), int (*pkey_size) (const EVP_PKEY *pk), int (*pkey_bits) (const EVP_PKEY *pk)) argument 433 EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, int (*priv_decode) (EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf), int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), int (*priv_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument 449 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode) (EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing) (const EVP_PKEY *pk), int (*param_copy) (EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) argument
|
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 | x_name.c | 94 const char *fname, const ASN1_PCTX *pctx); 334 const char *fname, const ASN1_PCTX *pctx) 337 indent, pctx->nm_flags) <= 0) 332 x509_name_ex_print(BIO *out, ASN1_VALUE **pval, int indent, const char *fname, const ASN1_PCTX *pctx) argument
|
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
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_core.c | 79 struct mlx5_fpga_client_data **pctx) 98 if (pctx) 99 *pctx = context; 77 client_context_create(struct mlx5_fpga_device *fdev, struct mlx5_fpga_client *client, struct mlx5_fpga_client_data **pctx) argument
|
/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/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/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/cms/ |
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
|
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_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...] |
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | s3_srvr.c | 3192 EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new(pkey, NULL); local 3193 if (pctx == NULL) { 3198 if (EVP_PKEY_verify_init(pctx) <= 0) { 3199 EVP_PKEY_CTX_free(pctx); 3212 j = EVP_PKEY_verify(pctx, signature, 64, s->s3->tmp.cert_verify_md, 3214 EVP_PKEY_CTX_free(pctx);
|
H A D | s3_clnt.c | 3252 EVP_PKEY_CTX *pctx = NULL; local 3264 pctx = EVP_PKEY_CTX_new(pkey, NULL); 3265 if (pctx == NULL || EVP_PKEY_sign_init(pctx) <= 0) { 3269 if (EVP_PKEY_CTX_set_signature_md(pctx, EVP_sha1()) > 0) { 3353 if (EVP_PKEY_sign(pctx, signbuf, &sigsize, data, 32) <= 0) { 3370 EVP_PKEY_CTX_free(pctx); 3374 EVP_PKEY_CTX_free(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/apps/ |
H A D | dgst.c | 413 EVP_PKEY_CTX *pctx = NULL; local 421 r = EVP_DigestVerifyInit(mctx, &pctx, md, impl, sigkey); 423 r = EVP_DigestSignInit(mctx, &pctx, md, impl, sigkey); 433 if (pkey_ctrl_string(pctx, sigopt) <= 0) {
|
H A D | cms.c | 78 static int cms_set_pkey_param(EVP_PKEY_CTX *pctx, 888 EVP_PKEY_CTX *pctx; local 889 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); 890 if (!cms_set_pkey_param(pctx, kparam->param)) 1000 EVP_PKEY_CTX *pctx; local 1001 pctx = CMS_SignerInfo_get0_pkey_ctx(si); 1002 if (!cms_set_pkey_param(pctx, kparam->param)) 1340 static int cms_set_pkey_param(EVP_PKEY_CTX *pctx, argument 1349 if (pkey_ctrl_string(pctx, keyopt) <= 0) {
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | libssl_compat.c | 85 EVP_MD_CTX * pctx 88 free(pctx);
|
/freebsd-11-stable/crypto/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 382 const ASN1_STRING *sig, int indent, ASN1_PCTX *pctx) 744 EVP_PKEY_CTX *pkctx = ctx->pctx; 381 rsa_sig_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig, int indent, ASN1_PCTX *pctx) argument
|
/freebsd-11-stable/crypto/openssl/crypto/hmac/ |
H A D | hm_pmeth.c | 145 HMAC_PKEY_CTX *hctx = ctx->pctx->data;
|
/freebsd-11-stable/crypto/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 535 const ASN1_STRING *sig, int indent, ASN1_PCTX *pctx) 534 dsa_sig_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig, int indent, ASN1_PCTX *pctx) argument
|