aboutsummaryrefslogblamecommitdiffstats
path: root/t/blake224.c
blob: 6ea936ad9661c799c30a6ea471aa47968a76b2cf (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                               
                                                                                   
                                                                                        
                                                                                            
                                                                                                
                                                                                                    
                                                                                                       













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


static struct testcase testcases[] = {
	{1, 0, "", "7dc5313b1c04512a174bd6503b89607aecbee0903d40a8a569c94eed"},
	{1, 8, "\xcc", "5e21c1e375c7bc822046fad96910c95031bd4262ada71b4c91052fea"},
	{1, 16, "\x41\xfb", "195707e8ce71fb91c2c82ccf78022609a598bd80c9a505ef035314db"},
	{1, 24, "\x1f\x87\x7c", "4239b4afa926f2269b117059dc0310033c9c85acea1a031f97cd4e2a"},
	{1, 32, "\xc1\xec\xfd\xfc", "9cd80af6d0181b831e1879959f287735c9cbf5d1e480e7341266d6f0"},
	{1, 40, "\x21\xf1\x34\xac\x57", "9e908983741757ff632c01f2b2c4d7f1ec8e642d112c212ba9739fd1"},
	{1, 48, "\xc6\xf5\x0b\xb7\x4e\x29", "6d6d952053aead200de9daa856c2993a7a7fa4a15b3924fb77dbb384"}
};


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


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