Lines Matching refs:hmacsha256ctx
883 isc_hmacsha256_t *hmacsha256ctx;
886 hmacsha256ctx = isc_mem_get(dctx->mctx, sizeof(isc_hmacsha256_t));
887 if (hmacsha256ctx == NULL)
889 isc_hmacsha256_init(hmacsha256ctx, hkey->key, ISC_SHA256_DIGESTLENGTH);
890 dctx->ctxdata.hmacsha256ctx = hmacsha256ctx;
896 isc_hmacsha256_t *hmacsha256ctx = dctx->ctxdata.hmacsha256ctx;
898 if (hmacsha256ctx != NULL) {
899 isc_hmacsha256_invalidate(hmacsha256ctx);
900 isc_mem_put(dctx->mctx, hmacsha256ctx, sizeof(isc_hmacsha256_t));
901 dctx->ctxdata.hmacsha256ctx = NULL;
907 isc_hmacsha256_t *hmacsha256ctx = dctx->ctxdata.hmacsha256ctx;
909 isc_hmacsha256_update(hmacsha256ctx, data->base, data->length);
915 isc_hmacsha256_t *hmacsha256ctx = dctx->ctxdata.hmacsha256ctx;
921 isc_hmacsha256_sign(hmacsha256ctx, digest, ISC_SHA256_DIGESTLENGTH);
929 isc_hmacsha256_t *hmacsha256ctx = dctx->ctxdata.hmacsha256ctx;
934 if (isc_hmacsha256_verify(hmacsha256ctx, sig->base, sig->length))