diff --git a/test.c b/test.c index b6547a5..1f57594 100644 --- a/test.c +++ b/test.c @@ -13,6 +13,7 @@ */ #include "vectors.h" +#include #include #include #include @@ -46,6 +47,7 @@ size_t lengths[4] = {8, 16, 4, 8}; int main() { uint8_t in[64], out[16], k[16]; int i; + bool any_failed; #ifndef GETVECTORS int fails = 0; #endif @@ -91,6 +93,7 @@ int main() { if (memcmp(out, v + (i * len), len)) { printf("fail for %d bytes\n", i); fails++; + any_failed = true; } #endif } @@ -105,5 +108,5 @@ int main() { #endif } - return 0; + return any_failed; }