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 | 74957884685c3c3df9ef9540d2ff517017497a89 (patch) | |
tree | 271fcd34a9b21471420f957249ff67cb5963b318 /src/crypto/chacha20poly1305.h | |
parent | config: satisfy sparse (diff) | |
download | wireguard-monolithic-historical-74957884685c3c3df9ef9540d2ff517017497a89.tar.xz wireguard-monolithic-historical-74957884685c3c3df9ef9540d2ff517017497a89.zip |
blake2s: add AVX implementation
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) |