From efbabe47be56d7b9100621dc900f480b47418b29 Mon Sep 17 00:00:00 2001 From: Mouse Date: Thu, 18 Nov 2021 20:05:27 -0500 Subject: [PATCH] Apply patch from #359 --- gost_prov_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gost_prov_mac.c b/gost_prov_mac.c index ab04a9c24..1bad120b2 100644 --- a/gost_prov_mac.c +++ b/gost_prov_mac.c @@ -145,7 +145,7 @@ static int mac_final(void *mctx, unsigned char *out, size_t *outl, /* We ignore the error for GOST MDs that don't support setting the size */ EVP_MD_CTX_ctrl(gctx->dctx, EVP_MD_CTRL_XOF_LEN, gctx->mac_size, NULL); - ret = EVP_DigestFinal_ex(gctx->dctx, out, &tmpoutl); + ret = EVP_DigestFinalXOF(gctx->dctx, out, gctx->mac_size); } if (outl != NULL) *outl = (size_t)gctx->mac_size;