Skip to content

Commit

Permalink
Apply patch from gost-engine#359
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse07410 committed Nov 19, 2021
1 parent 110b982 commit efbabe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gost_prov_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit efbabe4

Please sign in to comment.