summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-18 03:23:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-18 04:21:16 +0200
commit39ccd042f98e3a151fa74b8d0351899affecf6d4 (patch)
treeb2f7ce77a84f25c1337b9aab1cdee0c7a99ba7a4
parent9a2f6963065576df10aff603411ecc96b3981995 (diff)
chacha20-x86_64: use correct cut off for avx512-vl
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/crypto/zinc/chacha20/chacha20-x86_64-glue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h
index 912bded..d2b1c4b 100644
--- a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h
+++ b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h
@@ -69,7 +69,7 @@ static inline bool chacha20_arch(u8 *dst, const u8 *src, const size_t len,
chacha20_avx512(dst, src, len, key, counter);
return true;
}
- if (chacha20_use_avx512vl && len >= CHACHA20_BLOCK_SIZE * 8) {
+ if (chacha20_use_avx512vl && len >= CHACHA20_BLOCK_SIZE * 4) {
chacha20_avx512vl(dst, src, len, key, counter);
return true;
}