|
| 1 | +name: Wycheproof Vectors |
| 2 | + |
| 3 | +# START OF COMMON SECTION |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ 'master', 'main', 'release/**' ] |
| 7 | + pull_request: |
| 8 | + branches: [ '*' ] |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | +# END OF COMMON SECTION |
| 14 | + |
| 15 | +jobs: |
| 16 | + wycheproof: |
| 17 | + name: wycheproof vectors |
| 18 | + if: github.repository_owner == 'wolfssl' |
| 19 | + runs-on: ubuntu-latest |
| 20 | + timeout-minutes: 30 |
| 21 | + |
| 22 | + steps: |
| 23 | + - name: Checkout wolfSSL |
| 24 | + uses: actions/checkout@v4 |
| 25 | + |
| 26 | + - name: Build wolfSSL |
| 27 | + run: | |
| 28 | + autoreconf -i |
| 29 | + ./configure \ |
| 30 | + --enable-cryptocb \ |
| 31 | + --enable-ecc \ |
| 32 | + --enable-aesgcm \ |
| 33 | + --enable-aesccm \ |
| 34 | + --enable-aeseax \ |
| 35 | + --enable-aessiv \ |
| 36 | + --enable-aesxts \ |
| 37 | + --enable-keywrap \ |
| 38 | + --enable-siphash \ |
| 39 | + --enable-hkdf \ |
| 40 | + --enable-mldsa \ |
| 41 | + --enable-mlkem \ |
| 42 | + --enable-slhdsa \ |
| 43 | + --disable-examples |
| 44 | + make -j$(nproc) |
| 45 | +
|
| 46 | + - name: Checkout wychcheck |
| 47 | + uses: actions/checkout@v4 |
| 48 | + with: |
| 49 | + repository: wolfSSL/wychcheck |
| 50 | + path: wychcheck |
| 51 | + |
| 52 | + - name: Init wycheproof vectors submodule |
| 53 | + working-directory: wychcheck |
| 54 | + run: git submodule update --init wycheproof |
| 55 | + |
| 56 | + - name: Build wolfcrypt-check |
| 57 | + working-directory: wychcheck |
| 58 | + run: | |
| 59 | + cmake -B build -DWOLFSSL_DIR=${{ github.workspace }} |
| 60 | + cmake --build build -j$(nproc) |
| 61 | +
|
| 62 | + - name: Run wycheproof tests |
| 63 | + working-directory: wychcheck |
| 64 | + run: | |
| 65 | + ctest --test-dir build \ |
| 66 | + --output-on-failure \ |
| 67 | + --parallel $(nproc) \ |
| 68 | + --output-junit test-results.xml |
| 69 | +
|
| 70 | + - name: Upload test results |
| 71 | + if: always() |
| 72 | + uses: actions/upload-artifact@v4 |
| 73 | + with: |
| 74 | + name: wycheproof-results |
| 75 | + path: wychcheck/test-results.xml |
0 commit comments