]> Git Repo - haraka-avx512.git/commitdiff
run
authorjesse <[email protected]>
Tue, 4 Aug 2020 03:08:45 +0000 (23:08 -0400)
committerjesse <[email protected]>
Tue, 4 Aug 2020 03:08:45 +0000 (23:08 -0400)
haraka
haraka.c
haraka.h
haraka.o
main.c
main.o

diff --git a/haraka b/haraka
index 99ade0dd245450c3e9c8fd5f5b5ec7d4271b1c07..241ff35b91736547f41bff61115ba9f1c3211e82 100755 (executable)
Binary files a/haraka and b/haraka differ
index 73a01222ab1e95daacbc9a41eae785ec0bb41f82..8d69e8b870092440c2315528e2e63662ed0e3836 100644 (file)
--- a/haraka.c
+++ b/haraka.c
@@ -47,7 +47,7 @@ void load_constants() {
 }//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
@@ -77,13 +77,14 @@ void test_implementations() {
   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
index ba6bb5c984a9e5219c282b3f7c36c16f85bcd8e7..171842b9dacbff80e236d7c6a2ad8bbd9ac093b8 100644 (file)
--- a/haraka.h
+++ b/haraka.h
@@ -89,7 +89,7 @@ u512 MIX_4;
   *(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);
index 2736e6bd2f3ae6efdf31dccfe725fcf0fc97b0e4..f4c88f9a7465eba74e3e862f4f5d63c9ccab9dc5 100644 (file)
Binary files a/haraka.o and b/haraka.o differ
diff --git a/main.c b/main.c
index 4e967e06102bc4742dc7a90fc22f7fa8d6ee3dd9..9173b6d153e8334aa94187a39fcd1697cbe5eef8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -18,6 +18,6 @@ static void phex(uint8_t* str)
     printf("\n");
 }
 int main() {
-       test_implementations();
-
+       if(test_implementations() != 0)printf("help"); // lol i think i can just do without the != 0 cus C
+       else printf("ayayay");
 }
diff --git a/main.o b/main.o
index cdeba90c33e57e1395c40ffc99007759ec92cb24..32adb885f661b12d5d4957d9c4205d521f424cc4 100644 (file)
Binary files a/main.o and b/main.o differ
This page took 0.03639 seconds and 4 git commands to generate.