Merge pull request #329 from PQClean/fix-test_symbol_namespace
Fix the test_symbol_namespace test
This commit is contained in:
commit
5eed5d3af1
@ -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++) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -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++) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -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++) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -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…
Reference in New Issue
Block a user