diff options
Diffstat (limited to 't/blake384.c')
-rw-r--r-- | t/blake384.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/t/blake384.c b/t/blake384.c new file mode 100644 index 0000000..30623a6 --- /dev/null +++ b/t/blake384.c @@ -0,0 +1,34 @@ +/* See LICENSE file for copyright and license details. */ +#ifdef SUPPORT_BLAKE384 +# define TEST +# include "common.h" + + +static struct testcase testcases[] = { + {1, 0, "", "c6cbd89c926ab525c242e6621f2f5fa73aa4afe3d9e24aed727faaadd6af38b620bdb623dd2b4788b1c8086984af8706"}, + {1, 8, "\xcc", + "a77e65c0c03ecb831dbcdd50a3c2bce300d55eac002a9c197095518d8514c0b578e3ecb7415291f99ede91d49197dd05"}, + {1, 16, "\x41\xfb", + "e80a87362c9d39e2074ac135e2514b0cdf0001bfd8c35888d7ca8bbc4e918a157386524d41579e7fcd9c3c9a4f7a991a"}, + {1, 24, "\x1f\x87\x7c", + "d67cfa1b09c8c050094ea018bb5ecd3ce0c02835325467a8fa79701f0ad6bbd4a34947bbaa2fc5f9379985ccd6a1dc0e"}, + {1, 32, "\xc1\xec\xfd\xfc", + "7a57c41d850b7ab51c6075aba299ff649fdaf08a4c37088ece73b21304b1072c21930cc34ac6b0fc5f27b95f4f389b26"}, + {1, 40, "\x21\xf1\x34\xac\x57", + "324155f4f5e346bfe0b08e9642bebe86505795be186146d30242273ebebb3d51e076b1105ab647c130e6efc0b75072a7"}, + {1, 48, "\xc6\xf5\x0b\xb7\x4e\x29", + "5ddb50068ca430bffae7e5a8bbcb2c59171743cce027c0ea937fa2b511848192af2aca98ead30b0850b4d2d1542decdb"} +}; + + +#else +# define TEST_UNSUPPORTED +# include "common.h" +#endif + + +int +main(void) +{ + TEST_MAIN("BLAKE384", BLAKE384); +} |