aboutsummaryrefslogblamecommitdiffstats
path: root/sha3_256.c
blob: fd57a2d8313f678e509d6858d75fcac21a8c653f (plain) (tree)



























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


static struct testcase testcases[] = {
	{1, 0, "", "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a"},
	{0, 1, "\xff", "83f66216d2cc769e153bafce0181b61a471b4c6a213fc6f59a42985f976f33fe"},
	{0, 1, "\x7f", "83f66216d2cc769e153bafce0181b61a471b4c6a213fc6f59a42985f976f33fe"},
	{0, 1, "\x01", "83f66216d2cc769e153bafce0181b61a471b4c6a213fc6f59a42985f976f33fe"},
	{0, 1, "\xfe", "1b2e61923578e35f3b4629e04a0ff3b73daa571ae01130d9c16ef7da7a4cfdc2"},
	{0, 1, "\x7e", "1b2e61923578e35f3b4629e04a0ff3b73daa571ae01130d9c16ef7da7a4cfdc2"},
	{0, 1, "\x00", "1b2e61923578e35f3b4629e04a0ff3b73daa571ae01130d9c16ef7da7a4cfdc2"}
};


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


int
main(void)
{
	TEST_MAIN("SHA3-256", SHA3_256);
}