aboutsummaryrefslogtreecommitdiffstats
path: root/t/blake224.c
diff options
context:
space:
mode:
Diffstat (limited to 't/blake224.c')
-rw-r--r--t/blake224.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/t/blake224.c b/t/blake224.c
new file mode 100644
index 0000000..6ea936a
--- /dev/null
+++ b/t/blake224.c
@@ -0,0 +1,28 @@
+/* See LICENSE file for copyright and license details. */
+#ifdef SUPPORT_BLAKE224
+# define TEST
+# include "common.h"
+
+
+static struct testcase testcases[] = {
+ {1, 0, "", "7dc5313b1c04512a174bd6503b89607aecbee0903d40a8a569c94eed"},
+ {1, 8, "\xcc", "5e21c1e375c7bc822046fad96910c95031bd4262ada71b4c91052fea"},
+ {1, 16, "\x41\xfb", "195707e8ce71fb91c2c82ccf78022609a598bd80c9a505ef035314db"},
+ {1, 24, "\x1f\x87\x7c", "4239b4afa926f2269b117059dc0310033c9c85acea1a031f97cd4e2a"},
+ {1, 32, "\xc1\xec\xfd\xfc", "9cd80af6d0181b831e1879959f287735c9cbf5d1e480e7341266d6f0"},
+ {1, 40, "\x21\xf1\x34\xac\x57", "9e908983741757ff632c01f2b2c4d7f1ec8e642d112c212ba9739fd1"},
+ {1, 48, "\xc6\xf5\x0b\xb7\x4e\x29", "6d6d952053aead200de9daa856c2993a7a7fa4a15b3924fb77dbb384"}
+};
+
+
+#else
+# define TEST_UNSUPPORTED
+# include "common.h"
+#endif
+
+
+int
+main(void)
+{
+ TEST_MAIN("BLAKE224", BLAKE224);
+}