Browse Source

Wshadow at Dilithium/avx2

kyber
Michael Baentsch 4 years ago
committed by Kris Kwiatkowski
parent
commit
9248977595
6 changed files with 6 additions and 6 deletions
  1. +1
    -1
      crypto_sign/dilithium2/avx2/Makefile
  2. +1
    -1
      crypto_sign/dilithium2/avx2/fips202x4.c
  3. +1
    -1
      crypto_sign/dilithium3/avx2/Makefile
  4. +1
    -1
      crypto_sign/dilithium3/avx2/fips202x4.c
  5. +1
    -1
      crypto_sign/dilithium4/avx2/Makefile
  6. +1
    -1
      crypto_sign/dilithium4/avx2/fips202x4.c

+ 1
- 1
crypto_sign/dilithium2/avx2/Makefile View File

@@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \

CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)

all: $(LIB)


+ 1
- 1
crypto_sign/dilithium2/avx2/fips202x4.c View File

@@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;

for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}



+ 1
- 1
crypto_sign/dilithium3/avx2/Makefile View File

@@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \

CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)

all: $(LIB)


+ 1
- 1
crypto_sign/dilithium3/avx2/fips202x4.c View File

@@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;

for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}



+ 1
- 1
crypto_sign/dilithium4/avx2/Makefile View File

@@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \

CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)

all: $(LIB)


+ 1
- 1
crypto_sign/dilithium4/avx2/fips202x4.c View File

@@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;

for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}



Loading…
Cancel
Save