}//duck its endien ness // good programers make programs to make their programs i fixed it\r
\r
\r
-void test_implementations() {\r
+int test_implementations() {\r
unsigned char *in = (unsigned char *)calloc(64*8, sizeof(unsigned char));\r
unsigned char *out256 = (unsigned char *)calloc(32*8, sizeof(unsigned char));\r
unsigned char *out512 = (unsigned char *)calloc(32*8, sizeof(unsigned char));\r
for(i = 0; i < 32; i++) {\r
if (out512[i % 32] != testvector512[i]) {\r
printf("Error: testvector incorrect.\n");\r
- return;\r
+ return -1;\r
}\r
}\r
\r
free(in);\r
free(out256);\r
free(out512);\r
+ return 0;\r
}\r
/*\r
void haraka256(unsigned char *out, const unsigned char *in) {\r
*(u64*)(out + 16) = *(((u64*)&s + 4)); \
*(u64*)(out + 24) = *(((u64*)&s + 6));
void load_constants();
-void test_implementations();
+int test_implementations();
/*
void haraka256(unsigned char *out, const unsigned char *in);