Lines Matching refs:hmacsha1ctx
345 isc_hmacsha1_t *hmacsha1ctx;
348 hmacsha1ctx = isc_mem_get(dctx->mctx, sizeof(isc_hmacsha1_t));
349 if (hmacsha1ctx == NULL)
351 isc_hmacsha1_init(hmacsha1ctx, hkey->key, ISC_SHA1_DIGESTLENGTH);
352 dctx->ctxdata.hmacsha1ctx = hmacsha1ctx;
358 isc_hmacsha1_t *hmacsha1ctx = dctx->ctxdata.hmacsha1ctx;
360 if (hmacsha1ctx != NULL) {
361 isc_hmacsha1_invalidate(hmacsha1ctx);
362 isc_mem_put(dctx->mctx, hmacsha1ctx, sizeof(isc_hmacsha1_t));
363 dctx->ctxdata.hmacsha1ctx = NULL;
369 isc_hmacsha1_t *hmacsha1ctx = dctx->ctxdata.hmacsha1ctx;
371 isc_hmacsha1_update(hmacsha1ctx, data->base, data->length);
377 isc_hmacsha1_t *hmacsha1ctx = dctx->ctxdata.hmacsha1ctx;
383 isc_hmacsha1_sign(hmacsha1ctx, digest, ISC_SHA1_DIGESTLENGTH);
391 isc_hmacsha1_t *hmacsha1ctx = dctx->ctxdata.hmacsha1ctx;
396 if (isc_hmacsha1_verify(hmacsha1ctx, sig->base, sig->length))