Browse Source

Merge pull request #329 from PQClean/fix-test_symbol_namespace

Fix the test_symbol_namespace test
master
mergify[bot] 4 years ago
committed by GitHub
parent
commit
5eed5d3af1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions
  1. +1
    -1
      crypto_kem/hqc-128/avx2/code.c
  2. +1
    -1
      crypto_kem/hqc-128/avx2/gen_matrix.h
  3. +1
    -1
      crypto_kem/hqc-192/avx2/code.c
  4. +1
    -1
      crypto_kem/hqc-192/avx2/gen_matrix.h
  5. +1
    -1
      crypto_kem/hqc-256/avx2/code.c
  6. +1
    -1
      crypto_kem/hqc-256/avx2/gen_matrix.h
  7. +2
    -2
      test/test_symbol_namespace.py

+ 1
- 1
crypto_kem/hqc-128/avx2/code.c View File

@@ -43,7 +43,7 @@ void PQCLEAN_HQC128_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix);
colonne = ((__m256i *) PQCLEAN_HQC128_AVX2_gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 1
- 1
crypto_kem/hqc-128/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 1
- 1
crypto_kem/hqc-192/avx2/code.c View File

@@ -43,7 +43,7 @@ void PQCLEAN_HQC192_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix);
colonne = ((__m256i *) PQCLEAN_HQC192_AVX2_gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 1
- 1
crypto_kem/hqc-192/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 1
- 1
crypto_kem/hqc-256/avx2/code.c View File

@@ -44,7 +44,7 @@ void PQCLEAN_HQC256_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix);
colonne = ((__m256i *) PQCLEAN_HQC256_AVX2_gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 1
- 1
crypto_kem/hqc-256/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 2
- 2
test/test_symbol_namespace.py View File

@@ -33,14 +33,14 @@ def test_symbol_namespaces(implementation, impl_path, test_dir, init, destr):
lines = out.strip().split("\n")
symbols = []
for line in lines:
if ' T ' in line or ' D ' in line or ' S ' in line:
if line.startswith("00"):
symbols.append(line)

namespace = implementation.namespace_prefix()
non_namespaced = []
for symbolstr in symbols:
*_, symtype, symbol = symbolstr.split()
if symtype in 'TR':
if symtype in 'TDRS':
if not (symbol.startswith(namespace) or
symbol.startswith('_' + namespace) or
# KeccakP-1600 for AVX2


Loading…
Cancel
Save