diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | sha2.c (renamed from sha256.c) | 2 | ||||
-rw-r--r-- | sha2.h (renamed from sha256.h) | 0 | ||||
-rw-r--r-- | tests.c | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ CFLAGS=-std=c11 -W -Wall -Wextra -pedantic -O3 -march=native -OBJS=sha256.o main.o tests.o +OBJS=sha2.o main.o tests.o APP=sha256 .PHONY=all clean @@ -1,6 +1,6 @@ #include <stdio.h> // printf() #include <string.h> // strlen() -#include "sha256.h" +#include "sha2.h" #include "tests.h" static void print_hash(const uint8_t * const hash) { @@ -32,7 +32,7 @@ static void on_test_fail( } static uint8_t dst[SHA256_HASH_SIZE]; -static uint8_t buf[1 << 20]; +static uint8_t buf[1 << 21]; int main(int argc, char *argv[]) { if (argc > 1) { @@ -1,4 +1,4 @@ -#include "sha256.h" +#include "sha2.h" #include <string.h> // memcpy // extract bytes from uint32_t @@ -1,5 +1,5 @@ #include <string.h> // memcmp() -#include "sha256.h" +#include "sha2.h" #include "tests.h" #define DEF_TEST_FUNC(size) \ |