diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-07-16 21:24:45 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-07-16 21:24:45 -0400 |
commit | c7a9baba5db7421de9ca6170b252efc4e35a20f5 (patch) | |
tree | 4eb97281ddaac573c97677e6a7f5e520362b8909 | |
parent | a71fd905ecb2bb55cb63de5d05dd5a9ae3583cc7 (diff) | |
download | sha2-c7a9baba5db7421de9ca6170b252efc4e35a20f5.tar.bz2 sha2-c7a9baba5db7421de9ca6170b252efc4e35a20f5.zip |
mv sha2{56,}.[hc]
-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) \ |