aboutsummaryrefslogblamecommitdiffstats
path: root/blake512.c
blob: 83cff39cf63cc5295618531731a16ce36f3eab3e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                             


                                                                             


                                                                             


                                                                             


                                                                             


                                                                             

                                                                           
                                                                            













                                        
/* See LICENSE file for copyright and license details. */
#ifdef SUPPORT_BLAKE512
# define TEST
# include "common.h"


static struct testcase testcases[] = {
	{1, 0, "",
	 "a8cfbbd73726062df0c6864dda65defe58ef0cc52a5625090fa17601e1eecd1b"
	 "628e94f396ae402a00acc9eab77b4d4c2e852aaaa25a636d80af3fc7913ef5b8"},
	{1, 0, "The quick brown fox jumps over the lazy dog",
	 "1f7e26f63b6ad25a0896fd978fd050a1766391d2fd0471a77afb975e5034b7ad"
	 "2d9ccf8dfb47abbbe656e1b82fbc634ba42ce186e8dc5e1ce09a885d41f43451"},
	{1, 0, "The quick brown fox jumps over the lazy dof",
	 "a701c2a1f9baabd8b1db6b75aee096900276f0b86dc15d247ecc03937b370324"
	 "a16a4ffc0c3a85cd63229cfa15c15f4ba6d46ae2e849ed6335e9ff43b764198a"},
	{1, 8, "\xcc",
	 "4f0ef594f20172d23504873f596984c64c1583c7b2abb8d8786aa2aeeae1c46c"
	 "744b61893d661b0733b76d1fe19257dd68e0ef05422ca25d058dfe6c33d68709"},
	{1, 16, "\x41\xfb",
	 "20afd72afbb66a5a0efd8b4a627cc2c82a5e4b6c63b0c9a78735c188d248c758"
	 "8fb4ee566b3b6fdcc235a498f7263feb7ab1411582a7055e3ce7a8c976e61fcc"},
	{1, 24, "\x1f\x87\x7c",
	 "b1211367fd8a886674f74d92716e7585f9b6e933edc5ee7f974facdccc481cfa"
	 "42a0532375b94f2c0dd73d6189a815c2bafb5686d784be81fbb447b0f291272b"},
	{1, 32, "\xc1\xec\xfd\xfc",
	 "ccbcdbc1a30ebbcc4fc015fdb1caba6c0ad6719301b4bbad4b0efab1141174a1"
	 "5e2e8b8b8e5671c1864a0f75ecb20f76dac45159e67786d07d79a29b1827e5a4"},
	{1, 40, "\x21\xf1\x34\xac\x57",
	 "ec6eaabc2a128c38dfcddf9aaad5bb6fba397aac06a4b584b2dbdeb0cd7fdb1f"
	 "d248ef93c0686b73818b2b78c923c70eba63c096f33d842ada959f7674e4730c"},
	{1, 48, "\xc6\xf5\x0b\xb7\x4e\x29",
	 "b6e8a7380df1f007d7c271e7255bbca7714f25029ac1fd6fe92ef74cbcd9e99c"
	 "112f8ae1a45ccb566ce19d9678a122c612beff5f8eeeee3f3f402fd2781182d4"}
};


#else
# define TEST_UNSUPPORTED
# include "common.h"
#endif


int
main(void)
{
	TEST_MAIN("BLAKE512", BLAKE512);
}