Lines Matching refs:dctx

40     DSA_PKEY_CTX *dctx = OPENSSL_malloc(sizeof(*dctx));  in pkey_dsa_init()  local
42 if (dctx == NULL) in pkey_dsa_init()
44 dctx->nbits = 2048; in pkey_dsa_init()
45 dctx->qbits = 224; in pkey_dsa_init()
46 dctx->pmd = NULL; in pkey_dsa_init()
47 dctx->md = NULL; in pkey_dsa_init()
49 ctx->data = dctx; in pkey_dsa_init()
50 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init()
58 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
63 dctx = dst->data; in pkey_dsa_copy()
64 dctx->nbits = sctx->nbits; in pkey_dsa_copy()
65 dctx->qbits = sctx->qbits; in pkey_dsa_copy()
66 dctx->pmd = sctx->pmd; in pkey_dsa_copy()
67 dctx->md = sctx->md; in pkey_dsa_copy()
73 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_cleanup() local
74 OPENSSL_free(dctx); in pkey_dsa_cleanup()
83 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_sign() local
91 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_get_size(dctx->md)) in pkey_dsa_sign()
107 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_verify() local
115 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_get_size(dctx->md)) in pkey_dsa_verify()
125 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_ctrl() local
131 dctx->nbits = p1; in pkey_dsa_ctrl()
137 dctx->qbits = p1; in pkey_dsa_ctrl()
147 dctx->pmd = p2; in pkey_dsa_ctrl()
165 dctx->md = p2; in pkey_dsa_ctrl()
169 *(const EVP_MD **)p2 = dctx->md; in pkey_dsa_ctrl()
213 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_paramgen() local
229 if (dctx->md != NULL) in pkey_dsa_paramgen()
230 ossl_ffc_set_digest(&dsa->params, EVP_MD_get0_name(dctx->md), NULL); in pkey_dsa_paramgen()
233 FFC_PARAM_TYPE_DSA, dctx->nbits, in pkey_dsa_paramgen()
234 dctx->qbits, &res, pcb); in pkey_dsa_paramgen()