aboutsummaryrefslogtreecommitdiffstats
path: root/t/blake384.c
blob: 30623a688f1eeb1823847949fd0f8c3dee4e3f04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
}