aboutsummaryrefslogtreecommitdiffstats
path: root/t/blake2b.c
diff options
context:
space:
mode:
Diffstat (limited to 't/blake2b.c')
-rw-r--r--t/blake2b.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/t/blake2b.c b/t/blake2b.c
new file mode 100644
index 0000000..8f0c877
--- /dev/null
+++ b/t/blake2b.c
@@ -0,0 +1,30 @@
+/* See LICENSE file for copyright and license details. */
+#ifdef SUPPORT_BLAKE2B
+# define TEST
+# include "../common.h"
+
+
+static struct testcase testcases[] = {
+ {1, 0, "",
+ "786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419"
+ "d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce"},
+ {1, 0, "The quick brown fox jumps over the lazy dog",
+ "a8add4bdddfd93e4877d2746e62817b116364a1fa7bc148d95090bc7333b3673"
+ "f82401cf7aa2e4cb1ecd90296e3f14cb5413f8ed77be73045b13914cdcd6a918"},
+ {1, 0, "The quick brown fox jumps over the lazy dof",
+ "ab6b007747d8068c02e25a6008db8a77c218d94f3b40d2291a7dc8a62090a744"
+ "c082ea27af01521a102e42f480a31e9844053f456b4b41e8aa78bbe5c12957bb"}
+};
+
+
+#else
+# define TEST_UNSUPPORTED
+# include "../common.h"
+#endif
+
+
+int
+main(void)
+{
+ TEST_MAIN("BLAKE2b", BLAKE2B, 0);
+}