Lines Matching defs:dctx
120 openssleddsa_createctx(dst_key_t *key, dst_context_t *dctx) {
123 openssleddsa_alg_info(dctx->key->key_alg);
128 isc_buffer_allocate(dctx->mctx, &buf, 64);
129 dctx->ctxdata.generic = buf;
135 openssleddsa_destroyctx(dst_context_t *dctx) {
136 isc_buffer_t *buf = (isc_buffer_t *)dctx->ctxdata.generic;
138 openssleddsa_alg_info(dctx->key->key_alg);
144 dctx->ctxdata.generic = NULL;
148 openssleddsa_adddata(dst_context_t *dctx, const isc_region_t *data) {
149 isc_buffer_t *buf = (isc_buffer_t *)dctx->ctxdata.generic;
155 openssleddsa_alg_info(dctx->key->key_alg);
165 isc_buffer_allocate(dctx->mctx, &nbuf, length);
170 dctx->ctxdata.generic = nbuf;
176 openssleddsa_sign(dst_context_t *dctx, isc_buffer_t *sig) {
178 dst_key_t *key = dctx->key;
183 isc_buffer_t *buf = (isc_buffer_t *)dctx->ctxdata.generic;
203 dctx->category, "EVP_DigestSignInit", ISC_R_FAILURE));
208 DST_RET(dst__openssl_toresult3(dctx->category, "EVP_DigestSign",
217 dctx->ctxdata.generic = NULL;
223 openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
225 dst_key_t *key = dctx->key;
230 isc_buffer_t *buf = (isc_buffer_t *)dctx->ctxdata.generic;
247 dctx->category, "EVP_DigestVerifyInit", ISC_R_FAILURE));
261 ret = dst__openssl_toresult3(dctx->category, "EVP_DigestVerify",
269 dctx->ctxdata.generic = NULL;