[PATCH] Fix message digest final function for MD4, MD5 and RMD160

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu May 9 21:07:46 CEST 2019


On 9.5.2019 21.57, Jussi Kivilinna wrote:
> * cipher/md4.c (md4_final): Use buffer offset '64 + 56' for bit count
> on 'need one extra block' path.
> * cipher/md5.c (md5_final): Ditto.
> * cipher/rmd160.c (rmd160_final): Ditto.
> * tests/basic.c (check_one_md_final): New.
> (check_digest): Add new '*' test vectors and handle them with
> check_one_md_final.
> --
> 
> This commit fixes bug introduced with commit 46d7dbbc293fdc to MD4,

Actually that's wrong commit id (revert commit on my workarea). Actual
broken commit is e76cd0e2b1f6025c1319576a5848815d1d231aeb, "Optimizations
for digest final functions".

-Jussi




More information about the Gcrypt-devel mailing list