fix: enabled fuzzing

This commit is contained in:
Ezhil Shanmugham
2023-11-26 17:59:31 +05:30
committed by Karolin Varner
parent ba224a2200
commit 284ebb261f
10 changed files with 30 additions and 1 deletions

View File

@@ -117,3 +117,32 @@ jobs:
name: rosenpass name: rosenpass
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix develop --command cargo test - run: nix develop --command cargo test
cargo-fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install libsodium
run: sudo apt-get install -y libsodium-dev
- name: Install nightly toolchain
run: |
rustup toolchain install nightly
rustup default nightly
- name: Install cargo-fuzz
run: cargo install cargo-fuzz
- name: Run fuzzing
run: |
cargo fuzz run fuzz_aead_enc_into -- -max_total_time=60
cargo fuzz run fuzz_blake2b -- -max_total_time=60
cargo fuzz run fuzz_handle_msg -- -max_total_time=60
cargo fuzz run fuzz_kyber_encaps -- -max_total_time=60
cargo fuzz run fuzz_mceliece_encaps -- -max_total_time=60

View File

@@ -8,7 +8,7 @@ members = [
"constant-time", "constant-time",
"sodium", "sodium",
"to", "to",
"fuzzing", "fuzz",
] ]
default-members = [ default-members = [