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) { in pkey_dsa_sign()
92 md_size = EVP_MD_get_size(dctx->md); in pkey_dsa_sign()
112 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_verify() local
120 if (dctx->md != NULL) { in pkey_dsa_verify()
121 md_size = EVP_MD_get_size(dctx->md); in pkey_dsa_verify()
135 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_ctrl() local
141 dctx->nbits = p1; in pkey_dsa_ctrl()
147 dctx->qbits = p1; in pkey_dsa_ctrl()
157 dctx->pmd = p2; in pkey_dsa_ctrl()
175 dctx->md = p2; in pkey_dsa_ctrl()
179 *(const EVP_MD **)p2 = dctx->md; in pkey_dsa_ctrl()
223 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_paramgen() local
239 if (dctx->md != NULL) in pkey_dsa_paramgen()
240 ossl_ffc_set_digest(&dsa->params, EVP_MD_get0_name(dctx->md), NULL); in pkey_dsa_paramgen()
243 FFC_PARAM_TYPE_DSA, dctx->nbits, in pkey_dsa_paramgen()
244 dctx->qbits, &res, pcb); in pkey_dsa_paramgen()