mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
fix: enabled fuzzing
This commit is contained in:
committed by
Karolin Varner
parent
ba224a2200
commit
284ebb261f
29
.github/workflows/qc.yaml
vendored
29
.github/workflows/qc.yaml
vendored
@@ -117,3 +117,32 @@ jobs:
|
||||
name: rosenpass
|
||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||
- 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
|
||||
|
||||
@@ -8,7 +8,7 @@ members = [
|
||||
"constant-time",
|
||||
"sodium",
|
||||
"to",
|
||||
"fuzzing",
|
||||
"fuzz",
|
||||
]
|
||||
|
||||
default-members = [
|
||||
|
||||
0
fuzzing/.gitignore → fuzz/.gitignore
vendored
0
fuzzing/.gitignore → fuzz/.gitignore
vendored
0
fuzzing/Cargo.lock → fuzz/Cargo.lock
generated
0
fuzzing/Cargo.lock → fuzz/Cargo.lock
generated
Reference in New Issue
Block a user