-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add a workflow for a kyber test. 2. Fix a couple spots where a flag to use kyber wasn't getting set correctly. 3. Changed a check to kyber back to the original source, a local variable.
- Loading branch information
1 parent
d2c4284
commit 763e6db
Showing
2 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Kyber tests | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
run_test: | ||
name: Build and run | ||
strategy: | ||
matrix: | ||
config: | ||
- liboqs-url: https://github.com/open-quantum-safe/liboqs | ||
- liboqs-ver: 0.10.0 | ||
- wolfssl-url: https://github.com/wolfssl/wolfssl | ||
- wolfssl-ver: v5.7.0-stable | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Install dependencies | ||
run: sudo apt-get update && \ | ||
sudo apt-get install -y build-essential autoconf automake libtool \ | ||
git cmake make | ||
|
||
- name: Install liboqs source | ||
run: git clone --depth 1 --branch ${{ matrix.config.liboqs-ver }} \ | ||
${{ matrix.config.liboqs-url }} | ||
|
||
- name: Build and install liboqs | ||
working-directory: liboqs | ||
run: mkdir build && cd build && \ | ||
cmake -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 .. && \ | ||
make && sudo make install | ||
|
||
- name: Install wolfSSL source | ||
run: git clone --depth 1 --branch ${{ matrix.config.wolfssl-ver }} \ | ||
${{ matrix.config.wolfssl-url }} | ||
|
||
- name: Build and install wolfSSL | ||
working-directory: wolfssl | ||
run: autoreconf -ivf && \ | ||
./configure --enable-wolfssh --enable-kyber --enable-experimental \ | ||
--enable-cryptonly --disable-examples --disable-crypttests && \ | ||
make && sudo make install | ||
|
||
- name: Install wolfSSH | ||
run: git clone --depth 1 https://github.com/wolfssl/wolfssh | ||
|
||
- name: Build wolfSSH | ||
working-directory: wolfssh | ||
run: autoreconf -ivf && ./configure --with-liboqs && make | ||
|
||
- name: Run wolfssh tests | ||
working-directory: wolfssh | ||
run: make check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters