Lines Matching refs:dctx
83 DSA_PKEY_CTX *dctx; in pkey_dsa_init() local
84 dctx = OPENSSL_malloc(sizeof(DSA_PKEY_CTX)); in pkey_dsa_init()
85 if (!dctx) in pkey_dsa_init()
87 dctx->nbits = 1024; in pkey_dsa_init()
88 dctx->qbits = 160; in pkey_dsa_init()
89 dctx->pmd = NULL; in pkey_dsa_init()
90 dctx->md = NULL; in pkey_dsa_init()
92 ctx->data = dctx; in pkey_dsa_init()
93 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init()
101 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
105 dctx = dst->data; in pkey_dsa_copy()
106 dctx->nbits = sctx->nbits; in pkey_dsa_copy()
107 dctx->qbits = sctx->qbits; in pkey_dsa_copy()
108 dctx->pmd = sctx->pmd; in pkey_dsa_copy()
109 dctx->md = sctx->md; in pkey_dsa_copy()
115 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_cleanup() local
116 if (dctx) in pkey_dsa_cleanup()
117 OPENSSL_free(dctx); in pkey_dsa_cleanup()
125 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_sign() local
128 if (dctx->md) in pkey_dsa_sign()
129 type = EVP_MD_type(dctx->md); in pkey_dsa_sign()
146 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_verify() local
149 if (dctx->md) in pkey_dsa_verify()
150 type = EVP_MD_type(dctx->md); in pkey_dsa_verify()
161 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_ctrl() local
167 dctx->nbits = p1; in pkey_dsa_ctrl()
173 dctx->qbits = p1; in pkey_dsa_ctrl()
184 dctx->md = p2; in pkey_dsa_ctrl()
199 dctx->md = p2; in pkey_dsa_ctrl()
244 DSA_PKEY_CTX *dctx = ctx->data; in pkey_dsa_paramgen() local
257 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd, in pkey_dsa_paramgen()