diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-16 19:38:59 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-19 23:11:31 +0100 |
commit | 2fc244a152cef280b88ca1c33a1258aec3bbdc4b (patch) | |
tree | 0ca3adef8e08db1db5f1e09ab5d54576d23d0635 /src/crypto/chacha20poly1305.h | |
parent | d43629d000c2367462bc61ab8c3685abac8f2227 (diff) |
blake2s: add AVX implementation
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/chacha20poly1305.h')
-rw-r--r-- | src/crypto/chacha20poly1305.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/crypto/chacha20poly1305.h b/src/crypto/chacha20poly1305.h index c89ae2d..560ba84 100644 --- a/src/crypto/chacha20poly1305.h +++ b/src/crypto/chacha20poly1305.h @@ -13,7 +13,7 @@ enum chacha20poly1305_lengths { CHACHA20POLY1305_AUTHTAGLEN = 16 }; -void chacha20poly1305_init(void); +void chacha20poly1305_fpu_init(void); bool chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, @@ -44,12 +44,8 @@ bool xchacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, #ifdef CONFIG_X86_64 #include <linux/version.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) #include <asm/fpu/api.h> #include <asm/simd.h> -#else -#include <asm/i387.h> -#endif #endif static inline bool chacha20poly1305_init_simd(void) |