diff --git a/test/md2.cpp b/test/md2.cpp index 852304ac..0583ca60 100644 --- a/test/md2.cpp +++ b/test/md2.cpp @@ -47,6 +47,7 @@ main (int, char **) { for (const auto &i: TESTS) { MD2 h; h.update (i.input, strlen (i.input)); + h.finish (); auto out = h.digest (); if (out != i.output) { diff --git a/test/md4.cpp b/test/md4.cpp index c9e53f8e..c1d7509d 100644 --- a/test/md4.cpp +++ b/test/md4.cpp @@ -55,6 +55,7 @@ main (int, char**) { for (auto i: TESTS) { MD4 h; h.update (i.input, strlen (i.input)); + h.finish (); auto out = h.digest (); if (out != i.output) { diff --git a/test/md5.cpp b/test/md5.cpp index abd82ad9..3d4c016d 100644 --- a/test/md5.cpp +++ b/test/md5.cpp @@ -46,6 +46,7 @@ main (int, char**) { for (auto i: TESTS) { MD5 h; h.update (i.input, strlen (i.input)); + h.finish (); auto out = h.digest (); if (out != i.output) {