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
當前提交 5eed5d3af1
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有 7 個文件被更改,包括 8 次插入8 次删除

查看文件

@ -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