mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 17:57:21 +09:00
@@ -15,7 +15,6 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
||||||
|
|
||||||
@@ -26,6 +25,7 @@
|
|||||||
|
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
#include <wmmintrin.h>
|
#include <wmmintrin.h>
|
||||||
|
#include "private/sse2_64_32.h"
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
crypto_aead_aegis128l_update(__m128i *const state, const __m128i d1, const __m128i d2)
|
crypto_aead_aegis128l_update(__m128i *const state, const __m128i d1, const __m128i d2)
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
||||||
|
|
||||||
@@ -26,6 +25,7 @@
|
|||||||
|
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
#include <wmmintrin.h>
|
#include <wmmintrin.h>
|
||||||
|
#include "private/sse2_64_32.h"
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
crypto_aead_aegis256_update(__m128i *const state, const __m128i data)
|
crypto_aead_aegis256_update(__m128i *const state, const __m128i data)
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "crypto_aead_aes256gcm.h"
|
#include "crypto_aead_aes256gcm.h"
|
||||||
#include "export.h"
|
#include "export.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "randombytes.h"
|
#include "randombytes.h"
|
||||||
#include "runtime.h"
|
#include "runtime.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
@@ -22,19 +21,20 @@
|
|||||||
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC target("ssse3")
|
# pragma GCC target("ssse3")
|
||||||
#pragma GCC target("aes")
|
# pragma GCC target("aes")
|
||||||
#pragma GCC target("pclmul")
|
# pragma GCC target("pclmul")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
#include <wmmintrin.h>
|
#include <wmmintrin.h>
|
||||||
|
#include "private/sse2_64_32.h"
|
||||||
|
|
||||||
#if defined(__INTEL_COMPILER) || defined(_bswap64)
|
#if defined(__INTEL_COMPILER) || defined(_bswap64)
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define _bswap64(a) _byteswap_uint64(a)
|
# define _bswap64(a) _byteswap_uint64(a)
|
||||||
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
||||||
#define _bswap64(a) __builtin_bswap64(a)
|
# define _bswap64(a) __builtin_bswap64(a)
|
||||||
#else
|
#else
|
||||||
static inline uint64_t
|
static inline uint64_t
|
||||||
_bswap64(const uint64_t x)
|
_bswap64(const uint64_t x)
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include "blake2.h"
|
#include "blake2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
||||||
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
||||||
@@ -24,6 +23,7 @@
|
|||||||
# include <immintrin.h>
|
# include <immintrin.h>
|
||||||
# include <smmintrin.h>
|
# include <smmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blake2b-compress-avx2.h"
|
# include "blake2b-compress-avx2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include "blake2.h"
|
#include "blake2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && \
|
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && \
|
||||||
defined(HAVE_SMMINTRIN_H)
|
defined(HAVE_SMMINTRIN_H)
|
||||||
@@ -21,6 +20,7 @@
|
|||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
# include <smmintrin.h>
|
# include <smmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blake2b-compress-sse41.h"
|
# include "blake2b-compress-sse41.h"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#include "blake2.h"
|
#include "blake2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
||||||
|
|
||||||
@@ -15,6 +14,7 @@
|
|||||||
|
|
||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blake2b-compress-ssse3.h"
|
# include "blake2b-compress-ssse3.h"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include "crypto_verify_16.h"
|
#include "crypto_verify_16.h"
|
||||||
#include "poly1305_sse2.h"
|
#include "poly1305_sse2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(HAVE_TI_MODE) && defined(HAVE_EMMINTRIN_H)
|
#if defined(HAVE_TI_MODE) && defined(HAVE_EMMINTRIN_H)
|
||||||
@@ -16,6 +15,7 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
typedef __m128i xmmi;
|
typedef __m128i xmmi;
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include "argon2-core.h"
|
#include "argon2-core.h"
|
||||||
#include "argon2.h"
|
#include "argon2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
||||||
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
||||||
@@ -33,10 +32,11 @@
|
|||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# include <intrin.h> /* for _mm_set_epi64x */
|
# include <intrin.h> /* for _mm_set_epi64x */
|
||||||
# endif
|
# endif
|
||||||
#include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
#include <immintrin.h>
|
# include <immintrin.h>
|
||||||
#include <smmintrin.h>
|
# include <smmintrin.h>
|
||||||
#include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blamka-round-avx2.h"
|
# include "blamka-round-avx2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include "argon2-core.h"
|
#include "argon2-core.h"
|
||||||
#include "argon2.h"
|
#include "argon2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_AVX512FINTRIN_H) && defined(HAVE_AVX2INTRIN_H) && \
|
#if defined(HAVE_AVX512FINTRIN_H) && defined(HAVE_AVX2INTRIN_H) && \
|
||||||
defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
|
||||||
@@ -34,10 +33,11 @@
|
|||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# include <intrin.h> /* for _mm_set_epi64x */
|
# include <intrin.h> /* for _mm_set_epi64x */
|
||||||
# endif
|
# endif
|
||||||
#include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
#include <immintrin.h>
|
# include <immintrin.h>
|
||||||
#include <smmintrin.h>
|
# include <smmintrin.h>
|
||||||
#include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blamka-round-avx512f.h"
|
# include "blamka-round-avx512f.h"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include "argon2-core.h"
|
#include "argon2-core.h"
|
||||||
#include "argon2.h"
|
#include "argon2.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
||||||
|
|
||||||
@@ -32,6 +31,7 @@
|
|||||||
# endif
|
# endif
|
||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "blamka-round-ssse3.h"
|
# include "blamka-round-ssse3.h"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_EMMINTRIN_H
|
#ifdef HAVE_EMMINTRIN_H
|
||||||
|
|
||||||
@@ -46,6 +45,7 @@
|
|||||||
# if defined(__XOP__) && defined(DISABLED)
|
# if defined(__XOP__) && defined(DISABLED)
|
||||||
# include <x86intrin.h>
|
# include <x86intrin.h>
|
||||||
# endif
|
# endif
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "../crypto_scrypt.h"
|
# include "../crypto_scrypt.h"
|
||||||
# include "../pbkdf2-sha256.h"
|
# include "../pbkdf2-sha256.h"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "crypto_stream_chacha20.h"
|
#include "crypto_stream_chacha20.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
||||||
@@ -23,6 +22,7 @@
|
|||||||
# include <immintrin.h>
|
# include <immintrin.h>
|
||||||
# include <smmintrin.h>
|
# include <smmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "../stream_chacha20.h"
|
# include "../stream_chacha20.h"
|
||||||
# include "chacha20_dolbeau-avx2.h"
|
# include "chacha20_dolbeau-avx2.h"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "crypto_stream_chacha20.h"
|
#include "crypto_stream_chacha20.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
#if defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)
|
||||||
@@ -18,6 +17,7 @@
|
|||||||
|
|
||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "../stream_chacha20.h"
|
# include "../stream_chacha20.h"
|
||||||
# include "chacha20_dolbeau-ssse3.h"
|
# include "chacha20_dolbeau-ssse3.h"
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include "crypto_stream_salsa20.h"
|
#include "crypto_stream_salsa20.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
#if defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && \
|
||||||
@@ -22,6 +21,7 @@
|
|||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#include <smmintrin.h>
|
#include <smmintrin.h>
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
|
#include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "../stream_salsa20.h"
|
# include "../stream_salsa20.h"
|
||||||
# include "salsa20_xmm6int-avx2.h"
|
# include "salsa20_xmm6int-avx2.h"
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include "crypto_stream_salsa20.h"
|
#include "crypto_stream_salsa20.h"
|
||||||
#include "private/common.h"
|
#include "private/common.h"
|
||||||
#include "private/sse2_64_32.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#ifdef HAVE_EMMINTRIN_H
|
#ifdef HAVE_EMMINTRIN_H
|
||||||
@@ -14,6 +13,7 @@
|
|||||||
# pragma GCC target("sse2")
|
# pragma GCC target("sse2")
|
||||||
# endif
|
# endif
|
||||||
# include <emmintrin.h>
|
# include <emmintrin.h>
|
||||||
|
# include "private/sse2_64_32.h"
|
||||||
|
|
||||||
# include "../stream_salsa20.h"
|
# include "../stream_salsa20.h"
|
||||||
# include "salsa20_xmm6int-sse2.h"
|
# include "salsa20_xmm6int-sse2.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user