aboutsummaryrefslogtreecommitdiffstats
path: root/md2.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-23 22:03:54 +0200
committerMattias Andrée <maandree@kth.se>2024-08-23 22:03:54 +0200
commiteb943e0f73d43eb726671e522acf3a8f656b1947 (patch)
treedd280b21ae48d0db7ceba23318eaa5e987e81eea /md2.c
downloadlibhashsum-eb943e0f73d43eb726671e522acf3a8f656b1947.tar.gz
libhashsum-eb943e0f73d43eb726671e522acf3a8f656b1947.tar.bz2
libhashsum-eb943e0f73d43eb726671e522acf3a8f656b1947.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'md2.c')
-rw-r--r--md2.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/md2.c b/md2.c
new file mode 100644
index 0000000..baa2039
--- /dev/null
+++ b/md2.c
@@ -0,0 +1,25 @@
+/* See LICENSE file for copyright and license details. */
+#define TEST
+#include "common.h"
+
+
+static struct testcase testcases[] = {
+ {1, 0, "The quick brown fox jumps over the lazy dog", "03d85a0d629d2c442e987525319fc471"},
+ {1, 0, "The quick brown fox jumps over the lazy cog", "6b890c9292668cdbbfda00a4ebf31f05"},
+ {1, 0, "", "8350e5a3e24c153df2275c9f80692773"},
+ {1, 0, "a", "32ec01ec4a6dac72c0ab96fb34c0b5d1"},
+ {1, 0, "abc", "da853b0d3f88d99b30283a69e6ded6bb"},
+ {1, 0, "message digest", "ab4f496bfb2a530b219ff33031fe06b0"},
+ {1, 0, "abcdefghijklmnopqrstuvwxyz", "4e8ddff3650292ab5a4108c3aa47940b"},
+ {1, 0, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "da33def2a42df13975352846c30338cd"},
+ {1, 0, "12345678901234567890123456789012345678901234567890123456789012345678901234567890", "d5976f79d83d3a0dc9806c3c66f3efd8"},
+ {1, 0, "1234567890123456789012345678901234567890123456789012345678901234", "1a07a94849157fc19442f42e84225ebd"},
+ {1000000UL, 0, "a", NULL}
+};
+
+
+int
+main(void)
+{
+ TEST_MAIN("MD2", MD2);
+}