Lines Matching defs:dctx
126 openssldsa_createctx(dst_key_t *key, dst_context_t *dctx) {
141 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
149 sha1ctx = isc_mem_get(dctx->mctx, sizeof(isc_sha1_t));
153 dctx->ctxdata.sha1ctx = sha1ctx;
159 openssldsa_destroyctx(dst_context_t *dctx) {
161 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
165 dctx->ctxdata.evp_md_ctx = NULL;
168 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx;
172 isc_mem_put(dctx->mctx, sha1ctx, sizeof(isc_sha1_t));
173 dctx->ctxdata.sha1ctx = NULL;
179 openssldsa_adddata(dst_context_t *dctx, const isc_region_t *data) {
181 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
187 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx;
204 openssldsa_sign(dst_context_t *dctx, isc_buffer_t *sig) {
205 dst_key_t *key = dctx->key;
212 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
218 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx;
242 return (dst__openssl_toresult3(dctx->category,
257 return (dst__openssl_toresult3(dctx->category,
266 return (dst__openssl_toresult3(dctx->category,
272 return (dst__openssl_toresult3(dctx->category,
280 return (dst__openssl_toresult3(dctx->category,
303 openssldsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
304 dst_key_t *key = dctx->key;
311 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
318 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx;
376 return (dst__openssl_toresult3(dctx->category,