Merge pull request #315 from PQClean/fix-sphincs

Fix unaligned access in Haraka
This commit is contained in:
mergify[bot] 2020-08-27 14:14:24 +00:00 committed by GitHub
commit 82ea3c26f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)

View File

@ -14,7 +14,7 @@ Plain C implementation of the Haraka256 and Haraka512 permutations.
#define u64 uint64_t #define u64 uint64_t
#define u128 __m128i #define u128 __m128i
#define LOAD(src) _mm_load_si128((u128 *)(src)) #define LOAD(src) _mm_loadu_si128((u128 *)(src))
#define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src) #define STORE(dest,src) _mm_storeu_si128((u128 *)(dest),src)
#define XOR128(a, b) _mm_xor_si128(a, b) #define XOR128(a, b) _mm_xor_si128(a, b)