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
path: root/sse
diff options
context:
space:
mode:
authorSamuel Neves <sneves@dei.uc.pt>2016-06-10 13:37:44 +0300
committerSamuel Neves <sneves@dei.uc.pt>2016-06-10 13:37:44 +0300
commitd51174678721048e1f7a05c2f3d537d42b550c36 (patch)
tree94e647f276cee1f7e4fd7e246a3a0fe850c8cf30 /sse
parent9a57356891b7b2a1c0fcf0895e0155f468b5815a (diff)
fix kat paths; better sse2 detection
Diffstat (limited to 'sse')
-rw-r--r--sse/blake2-config.h8
-rw-r--r--sse/makefile4
2 files changed, 6 insertions, 6 deletions
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