aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/blake2s-avx-x86_64.S
diff options
context:
space:
mode:
authorSamuel Neves <sneves@dei.uc.pt>2017-11-17 12:07:52 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 18:32:48 +0100
commitabad6eebd9a94f50645062882755fbeaac354873 (patch)
tree5e3d066bc3784eb1e7423a24191741e008a129e8 /src/crypto/blake2s-avx-x86_64.S
parentchacha20poly1305: add more test vectors, some of which are weird (diff)
downloadwireguard-monolithic-historical-abad6eebd9a94f50645062882755fbeaac354873.tar.xz
wireguard-monolithic-historical-abad6eebd9a94f50645062882755fbeaac354873.zip
chacha20poly1305: import x86_64 primitives from OpenSSL
x86_64 only at the moment. SSSE3, AVX, AVX2, AVX512. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
Diffstat (limited to '')
-rw-r--r--src/crypto/blake2s-x86_64.S (renamed from src/crypto/blake2s-avx-x86_64.S)2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/blake2s-avx-x86_64.S b/src/crypto/blake2s-x86_64.S
index 6b3f8a3..e86afd3 100644
--- a/src/crypto/blake2s-avx-x86_64.S
+++ b/src/crypto/blake2s-x86_64.S
@@ -17,6 +17,7 @@ ROT16: .octa 0x0D0C0F0E09080B0A0504070601000302
ROR328: .octa 0x0C0F0E0D080B0A090407060500030201
.text
+#ifdef CONFIG_AS_AVX
ENTRY(blake2s_compress_avx)
movl %ecx, %ecx
testq %rdx, %rdx
@@ -584,3 +585,4 @@ ENTRY(blake2s_compress_avx)
.Lendofloop:
ret
ENDPROC(blake2s_compress_avx)
+#endif /* CONFIG_AS_AVX */