Skip to content

Commit

Permalink
Update md5_test.c
Browse files Browse the repository at this point in the history
  • Loading branch information
taeasy authored Jul 13, 2024
1 parent cfbde48 commit 7752b1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions md5_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ int md5_test()
md5_update(&ctx, text3_1, strlen(text3_1));
md5_update(&ctx, text3_2, strlen(text3_2));
md5_final(&ctx, buf);

//https://github.com/B-Con/crypto-algorithms/issues/34
memset(&ctx, 0, sizeof(&ctx));

pass = pass && !memcmp(hash3, buf, MD5_BLOCK_SIZE);

return(pass);
Expand Down

0 comments on commit 7752b1e

Please sign in to comment.