/freebsd-10-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) 88 if (ctx->pctx->pmeth->verifyctx_init) { 89 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) 91 ctx->pctx->operation = EVP_PKEY_OP_VERIFYCTX; 92 } else if (EVP_PKEY_verify_init(ctx->pctx) <= 0) 95 if (ctx->pctx 111 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) argument 117 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) argument [all...] |
H A D | digest.c | 220 if (ctx->pctx) { 222 r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG, 324 if (in->pctx) { 325 out->pctx = EVP_PKEY_CTX_dup(in->pctx); 326 if (!out->pctx) { 380 if (ctx->pctx) 381 EVP_PKEY_CTX_free(ctx->pctx);
|
H A D | pmeth_lib.c | 300 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) argument 303 if (!pctx->pmeth || !pctx->pmeth->copy) 307 if (pctx->engine && !ENGINE_init(pctx->engine)) { 316 rctx->pmeth = pctx->pmeth; 318 rctx->engine = pctx->engine; 321 if (pctx->pkey) 322 CRYPTO_add(&pctx->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY); 324 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 | 425 int indent, ASN1_PCTX *pctx) 428 return pkey->ameth->pub_print(out, pkey, indent, pctx); 434 int indent, ASN1_PCTX *pctx) 437 return pkey->ameth->priv_print(out, pkey, indent, pctx); 443 int indent, ASN1_PCTX *pctx) 446 return pkey->ameth->param_print(out, pkey, indent, pctx); 424 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 433 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 442 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
|
H A D | evp.h | 274 EVP_PKEY_CTX *pctx; member in struct:env_md_ctx_st 635 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 640 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 970 int indent, ASN1_PCTX *pctx); 972 int indent, ASN1_PCTX *pctx); 974 int indent, ASN1_PCTX *pctx); 1060 int indent, ASN1_PCTX *pctx), 1072 ASN1_PCTX *pctx)); 1087 ASN1_PCTX *pctx));
|
/freebsd-10-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 320 asn1_template_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx) argument 375 asn1_print_fsname(BIO *out, int indent, const char *fname, const char *sname, const ASN1_PCTX *pctx) argument 418 asn1_print_boolean_ctx(BIO *out, int boolval, const ASN1_PCTX *pctx) argument 443 asn1_print_integer_ctx(BIO *out, ASN1_INTEGER *str, const ASN1_PCTX *pctx) argument 457 asn1_print_oid_ctx(BIO *out, const ASN1_OBJECT *oid, const ASN1_PCTX *pctx) argument 471 asn1_print_obstring_ctx(BIO *out, ASN1_STRING *str, int indent, const ASN1_PCTX *pctx) argument 486 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 | 84 ASN1_PCTX *pctx); 88 ASN1_PCTX *pctx); 98 ASN1_PCTX *pctx); 101 int indent, ASN1_PCTX *pctx);
|
H A D | x_long.c | 78 int indent, const ASN1_PCTX *pctx); 193 int indent, const ASN1_PCTX *pctx) 192 long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx) argument
|
H A D | ameth_lib.c | 400 int indent, ASN1_PCTX *pctx), 421 ASN1_PCTX *pctx)) 441 int indent, ASN1_PCTX *pctx)) 391 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 412 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 428 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 | x_name.c | 94 const char *fname, const ASN1_PCTX *pctx); 329 const char *fname, const ASN1_PCTX *pctx) 332 indent, pctx->nm_flags) <= 0) 327 x509_name_ex_print(BIO *out, ASN1_VALUE **pval, int indent, const char *fname, const ASN1_PCTX *pctx) argument
|
H A D | asn1t.h | 669 const ASN1_PCTX *pctx); 678 const ASN1_PCTX *pctx); 737 const ASN1_PCTX *pctx; member in struct:ASN1_PRINT_ARG_st 901 const ASN1_PCTX *pctx) \ 904 ASN1_ITEM_rptr(itname), pctx); \
|
/freebsd-10-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); 196 if (EVP_PKEY_CTX_ctrl(pctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 3, NULL) 217 int pkey_GOST01cp_decrypt(EVP_PKEY_CTX *pctx, unsigned char *key, argument 222 EVP_PKEY *priv = EVP_PKEY_CTX_get0_pkey(pctx); 245 if (EVP_PKEY_derive_set_peer(pctx, eph_key) <= 0) { 252 if (EVP_PKEY_CTX_ctrl(pctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 3, NULL) 258 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; 102 pctx->sign_param_nid = (int)p1; 105 pctx->shared_ukm = OPENSSL_malloc((int)p1); 106 memcpy(pctx->shared_ukm, p2, (int)p1); 112 return pctx->peer_key_used; 114 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-10-stable/crypto/openssl/crypto/cms/ |
H A D | cms_env.c | 291 EVP_PKEY_CTX *pctx = NULL; local 304 pctx = EVP_PKEY_CTX_new(ktri->pkey, NULL); 305 if (!pctx) 308 if (EVP_PKEY_encrypt_init(pctx) <= 0) 311 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT, 317 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0) 327 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) 336 if (pctx) 337 EVP_PKEY_CTX_free(pctx); 350 EVP_PKEY_CTX *pctx local [all...] |
H A D | cms_sd.c | 641 EVP_PKEY_CTX *pctx; local 658 if (EVP_DigestSignInit(&mctx, &pctx, md, NULL, si->pkey) <= 0) 661 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN, 682 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN, 705 EVP_PKEY_CTX *pctx; local 719 if (EVP_DigestVerifyInit(&mctx, &pctx, md, NULL, si->pkey) <= 0)
|
/freebsd-10-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;
|
H A D | dgst.c | 402 EVP_PKEY_CTX *pctx = NULL; local 410 r = EVP_DigestVerifyInit(mctx, &pctx, md, NULL, sigkey); 412 r = EVP_DigestSignInit(mctx, &pctx, md, NULL, sigkey); 422 if (pkey_ctrl_string(pctx, sigopt) <= 0) {
|
H A D | apps.h | 321 int init_gen_str(BIO *err, EVP_PKEY_CTX **pctx,
|
/freebsd-10-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); 196 EVP_PKEY_CTX *pctx local 914 EVP_PKEY_CTX *pctx; local [all...] |
/freebsd-10-stable/contrib/ntp/sntp/libevent/ |
H A D | evrpc-internal.h | 121 static void evrpc_hook_associate_meta_(struct evrpc_hook_meta **pctx,
|
/freebsd-10-stable/crypto/openssl/crypto/cmac/ |
H A D | cm_pmeth.c | 104 if (!CMAC_Update(ctx->pctx->data, data, count))
|
/freebsd-10-stable/contrib/ntp/libntp/ |
H A D | libssl_compat.c | 85 EVP_MD_CTX * pctx 88 free(pctx);
|
/freebsd-10-stable/crypto/openssl/crypto/hmac/ |
H A D | hm_pmeth.c | 142 HMAC_PKEY_CTX *hctx = ctx->pctx->data;
|