From 944f514209a822169650dc1b8203014d04bd85f8 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Tue, 29 Jun 2021 15:10:15 +0200 Subject: [PATCH 1/3] Suppression file update for Dilithium and BIKE --- tests/constant_time/kem/issues.json | 2 ++ tests/constant_time/sig/passes/dilithium | 2 +- tests/constant_time/sig/passes/dilithium-aes-avx2 | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/constant_time/kem/issues.json b/tests/constant_time/kem/issues.json index ce6bd4a792..c8a0e4020f 100644 --- a/tests/constant_time/kem/issues.json +++ b/tests/constant_time/kem/issues.json @@ -1,4 +1,6 @@ { + "BIKE-L1": ["bike_has_no_timing_protections"], + "BIKE-L3": ["bike_has_no_timing_protections"], "BIKE1-L1-CPA": ["bike_has_no_timing_protections"], "BIKE1-L1-FO": ["bike_has_no_timing_protections"], "BIKE1-L3-CPA": ["bike_has_no_timing_protections"], diff --git a/tests/constant_time/sig/passes/dilithium b/tests/constant_time/sig/passes/dilithium index 342cb0a1dd..febdbcb55b 100644 --- a/tests/constant_time/sig/passes/dilithium +++ b/tests/constant_time/sig/passes/dilithium @@ -1,7 +1,7 @@ { Rejection sampling for uniformly distributed public A matrix Memcheck:Cond - src:poly.c:343 # fun:rej_uniform + fun:rej_uniform fun:pqcrystals_dilithium*_ref_poly_uniform fun:pqcrystals_dilithium*_ref_polyvec_matrix_expand } diff --git a/tests/constant_time/sig/passes/dilithium-aes-avx2 b/tests/constant_time/sig/passes/dilithium-aes-avx2 index f40da3a81c..51de8072f9 100644 --- a/tests/constant_time/sig/passes/dilithium-aes-avx2 +++ b/tests/constant_time/sig/passes/dilithium-aes-avx2 @@ -23,7 +23,7 @@ { Requested number of random bytes is not secret Memcheck:Cond - src:poly.c:413 + src:poly.c:394 # fun:pqcrystals_dilithium2aes_avx2_poly_uniform_preinit } @@ -46,6 +46,6 @@ { Requested number of random bytes is not secret Memcheck:Cond - src:poly.c:546 + src:poly.c:530 # fun:pqcrystals_dilithium*aes_avx2_poly_uniform_eta_preinit } From 6d847f51a562b850feaf643816dc2a29ae42260b Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Mon, 5 Jul 2021 10:51:45 +0200 Subject: [PATCH 2/3] Removes new BIKE variants from suppression files --- tests/constant_time/kem/issues.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/constant_time/kem/issues.json b/tests/constant_time/kem/issues.json index c8a0e4020f..ce6bd4a792 100644 --- a/tests/constant_time/kem/issues.json +++ b/tests/constant_time/kem/issues.json @@ -1,6 +1,4 @@ { - "BIKE-L1": ["bike_has_no_timing_protections"], - "BIKE-L3": ["bike_has_no_timing_protections"], "BIKE1-L1-CPA": ["bike_has_no_timing_protections"], "BIKE1-L1-FO": ["bike_has_no_timing_protections"], "BIKE1-L3-CPA": ["bike_has_no_timing_protections"], From 553b434d3204658ed0eb4cf993f3a95d48ab3b19 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Mon, 28 Jun 2021 09:50:39 +0200 Subject: [PATCH 3/3] Simple TravisCI integration for ppc64le --- .travis.yml | 12 ++++++++++++ README.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..da1053d3b9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: c +before_script: + - sudo apt -y install astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz valgrind +jobs: + include: + - arch: ppc64le # The IBM Power LXD container based build for OSS only + os: linux # required for arch different than amd64 + dist: focal # or bionic | xenial with xenial as default + compiler: gcc + script: + - mkdir build && cd build && cmake -GNinja .. && cmake -LA .. && ninja + - cd build & ninja run_tests diff --git a/README.md b/README.md index 78c9d9a538..c058cf2067 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[AppVeyor](https://ci.appveyor.com/project/dstebila/liboqs): ![Build status image](https://ci.appveyor.com/api/projects/status/9d2ts78x88r8wnii/branch/main?svg=true), [CircleCI](https://circleci.com/gh/open-quantum-safe/liboqs/tree/main): ![Build status image](https://circleci.com/gh/open-quantum-safe/liboqs/tree/main.svg?style=svg) +[AppVeyor](https://ci.appveyor.com/project/dstebila/liboqs): ![Build status image](https://ci.appveyor.com/api/projects/status/9d2ts78x88r8wnii/branch/main?svg=true), [CircleCI](https://circleci.com/gh/open-quantum-safe/liboqs/tree/main): ![Build status image](https://circleci.com/gh/open-quantum-safe/liboqs/tree/main.svg?style=svg), [TravisCI](https://travis-ci.com/github/bhess/liboqs): [![Build Status](https://travis-ci.com/bhess/liboqs.svg?branch=travis-ppc)](https://travis-ci.com/bhess/liboqs) liboqs ======================