diff options
Diffstat (limited to 't')
-rw-r--r-- | t/blake2b.c | 30 | ||||
-rw-r--r-- | t/blake2s.c | 22 |
2 files changed, 52 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); +} diff --git a/t/blake2s.c b/t/blake2s.c new file mode 100644 index 0000000..58408df --- /dev/null +++ b/t/blake2s.c @@ -0,0 +1,22 @@ +/* See LICENSE file for copyright and license details. */ +#ifdef SUPPORT_BLAKE2S +# define TEST +# include "../common.h" + + +static struct testcase testcases[] = { + {1, 0, "", "69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9"} +}; + + +#else +# define TEST_UNSUPPORTED +# include "../common.h" +#endif + + +int +main(void) +{ + TEST_MAIN("BLAKE2s", BLAKE2S, 0); +} |