From 74957884685c3c3df9ef9540d2ff517017497a89 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 16 Mar 2017 19:38:59 +0100 Subject: blake2s: add AVX implementation --- src/crypto/chacha20poly1305.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/crypto/chacha20poly1305.h') 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 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) #include #include -#else -#include -#endif #endif static inline bool chacha20poly1305_init_simd(void) -- cgit v1.2.3-59-g8ed1b