Merge pull request #329 from PQClean/fix-test_symbol_namespace

Fix the test_symbol_namespace test
This commit is contained in:
mergify[bot] 2020-10-02 05:48:05 +00:00 committed by GitHub
commit 5eed5d3af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ void PQCLEAN_HQC128_AVX2_code_encode(uint64_t *em, const uint64_t *m) {
__m256i *colonne, y, aux0; __m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m); __m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix); colonne = ((__m256i *) PQCLEAN_HQC128_AVX2_gen_matrix);
pos_r = 0; pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) { for (i = 0; i < PARAM_N1 - PARAM_K; i++) {

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@ void PQCLEAN_HQC192_AVX2_code_encode(uint64_t *em, const uint64_t *m) {
__m256i *colonne, y, aux0; __m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m); __m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix); colonne = ((__m256i *) PQCLEAN_HQC192_AVX2_gen_matrix);
pos_r = 0; pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) { for (i = 0; i < PARAM_N1 - PARAM_K; i++) {

File diff suppressed because one or more lines are too long

View File

@ -44,7 +44,7 @@ void PQCLEAN_HQC256_AVX2_code_encode(uint64_t *em, const uint64_t *m) {
__m256i *colonne, y, aux0; __m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m); __m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) gen_matrix); colonne = ((__m256i *) PQCLEAN_HQC256_AVX2_gen_matrix);
pos_r = 0; pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) { for (i = 0; i < PARAM_N1 - PARAM_K; i++) {

File diff suppressed because one or more lines are too long

View File

@ -33,14 +33,14 @@ def test_symbol_namespaces(implementation, impl_path, test_dir, init, destr):
lines = out.strip().split("\n") lines = out.strip().split("\n")
symbols = [] symbols = []
for line in lines: for line in lines:
if ' T ' in line or ' D ' in line or ' S ' in line: if line.startswith("00"):
symbols.append(line) symbols.append(line)
namespace = implementation.namespace_prefix() namespace = implementation.namespace_prefix()
non_namespaced = [] non_namespaced = []
for symbolstr in symbols: for symbolstr in symbols:
*_, symtype, symbol = symbolstr.split() *_, symtype, symbol = symbolstr.split()
if symtype in 'TR': if symtype in 'TDRS':
if not (symbol.startswith(namespace) or if not (symbol.startswith(namespace) or
symbol.startswith('_' + namespace) or symbol.startswith('_' + namespace) or
# KeccakP-1600 for AVX2 # KeccakP-1600 for AVX2