Lines Matching refs:dctx

90 	DSA_PKEY_CTX *dctx;  in pkey_dsa_init()  local
92 dctx = malloc(sizeof(DSA_PKEY_CTX)); in pkey_dsa_init()
93 if (!dctx) in pkey_dsa_init()
95 dctx->nbits = 1024; in pkey_dsa_init()
96 dctx->qbits = 160; in pkey_dsa_init()
97 dctx->pmd = NULL; in pkey_dsa_init()
98 dctx->md = NULL; in pkey_dsa_init()
100 ctx->data = dctx; in pkey_dsa_init()
101 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init()
110 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
115 dctx = dst->data; in pkey_dsa_copy()
116 dctx->nbits = sctx->nbits; in pkey_dsa_copy()
117 dctx->qbits = sctx->qbits; in pkey_dsa_copy()
118 dctx->pmd = sctx->pmd; in pkey_dsa_copy()
119 dctx->md = sctx->md; in pkey_dsa_copy()
126 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_cleanup() local
128 free(dctx); in pkey_dsa_cleanup()
136 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_sign() local
144 if (dctx->md != NULL) { in pkey_dsa_sign()
145 if (tbslen != EVP_MD_size(dctx->md)) in pkey_dsa_sign()
162 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_verify() local
167 if (dctx->md != NULL) { in pkey_dsa_verify()
168 if (tbslen != EVP_MD_size(dctx->md)) in pkey_dsa_verify()
178 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_ctrl() local
184 dctx->nbits = p1; in pkey_dsa_ctrl()
190 dctx->qbits = p1; in pkey_dsa_ctrl()
203 dctx->md = p2; in pkey_dsa_ctrl()
225 dctx->md = p2; in pkey_dsa_ctrl()
229 *(const EVP_MD **)p2 = dctx->md; in pkey_dsa_ctrl()
279 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_paramgen() local
290 if (!dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd, in pkey_dsa_paramgen()