Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .github/workflows/wycheproof.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Wycheproof Vectors

# START OF COMMON SECTION
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '**' ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION

jobs:
wycheproof:
name: wycheproof vectors
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout wolfSSL
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
autoconf automake libtool cmake

- name: Build wolfSSL
run: |
autoreconf -i
./configure \
Comment thread
MarkAtwood marked this conversation as resolved.
--enable-cryptocb \
--enable-ecc \
--enable-aesgcm \
--enable-aesccm \
--enable-aeseax \
--enable-aessiv \
--enable-aesxts \
--enable-aeskeywrap \
--enable-siphash \
--enable-hkdf \
--enable-mldsa \
--enable-mlkem \
--enable-slhdsa \
--disable-examples
make -j$(nproc)

- name: Checkout wychcheck
uses: actions/checkout@v4
with:
repository: wolfSSL/wychcheck
Comment thread
MarkAtwood marked this conversation as resolved.
ref: ${{ vars.WYCHCHECK_REF }}
path: wychcheck

- name: Init wycheproof vectors submodule
working-directory: wychcheck
run: git submodule update --init --depth 1 wycheproof

- name: Build wolfcrypt-check
working-directory: wychcheck
env:
WOLFSSL_DIR: ${{ github.workspace }}
run: |
cmake -B build
cmake --build build -j$(nproc)

- name: Run wycheproof tests
working-directory: wychcheck
run: |
ctest --test-dir build \
--output-on-failure \
--parallel $(nproc) \
--output-junit test-results.xml

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: wycheproof-results
path: wychcheck/test-results.xml
Loading