Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bench/makefile6
-rw-r--r--ref/makefile2
-rw-r--r--sse/blake2-config.h8
-rw-r--r--sse/makefile4
4 files changed, 10 insertions, 10 deletions
diff --git a/bench/makefile b/bench/makefile
index bd3be9b..183f298 100644
--- a/bench/makefile
+++ b/bench/makefile
@@ -3,9 +3,9 @@ CC=gcc
CFLAGS=-std=gnu99 -O3 -march=native -DSUPERCOP # -DHAVE_XOP # uncomment on XOP-enabled CPUs
FILES=amd64cpuinfo.c bench.c
-all:
- $(CC) $(FILES) $(CFLAGS) ../sse/blake2b.c -o blake2b
- $(CC) $(FILES) $(CFLAGS) ../sse/blake2s.c -o blake2s
+all:
+ $(CC) $(FILES) $(CFLAGS) ../sse/blake2b.c -o blake2b
+ $(CC) $(FILES) $(CFLAGS) ../sse/blake2s.c -o blake2s
$(CC) $(FILES) $(CFLAGS) md5.c -o md5 -lcrypto -lz
./blake2b > blake2b.data
./blake2s > blake2s.data
diff --git a/ref/makefile b/ref/makefile
index f2fa087..e4bb383 100644
--- a/ref/makefile
+++ b/ref/makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-std=c99 -Wall -pedantic
+CFLAGS=-std=c99 -Wall -pedantic -I../testvectors
all: blake2s blake2b blake2sp blake2bp
diff --git a/sse/blake2-config.h b/sse/blake2-config.h
index a4ec87b..5cf8104 100644
--- a/sse/blake2-config.h
+++ b/sse/blake2-config.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -17,7 +17,7 @@
#define __BLAKE2_CONFIG_H__
// These don't work everywhere
-#if defined(__SSE2__)
+#if defined(__SSE2__) || defined(__x86_64__) || defined(__amd64__)
#define HAVE_SSE2
#endif
diff --git a/sse/makefile b/sse/makefile
index 17ff67a..c7d2117 100644
--- a/sse/makefile
+++ b/sse/makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-std=c99 -Wall -pedantic -O3 -march=native
+CFLAGS=-std=c99 -Wall -pedantic -O3 -march=native -I../testvectors
all: blake2s blake2b blake2sp blake2bp
@@ -21,5 +21,5 @@ kat:
./genkat-c > blake2-kat.h
./genkat-json > blake2-kat.json
-clean:
+clean:
rm -rf *.o blake2s blake2b blake2sp blake2bp genkat-c genkat-json