rustls/fuzz
Daniel McCarney 17a7e17534 crypto: separate module dir, ring sub-module.
For better code organization this commit moves the generic crypto
interface code from `src/crypto.rs` to `src/crypto/lib.rs`.

The *ring* specific code implementing the generic interfaces is moved to
`src/crypto/ring.rs` as a sub-module of `crypto. All imports are
adjusted accordingly.

This has the advantage of leaving `src/crypto/lib.rs` small, and without
any *ring* specific imports. In the future we may choose to feature-gate
the ring sub-module to allow building the crate without a dependency on
ring.
2023-07-18 17:47:43 +00:00
..
corpus Invalid SessionID in ServerHelloPayload. 2021-04-15 10:12:54 +02:00
fuzzers crypto: separate module dir, ring sub-module. 2023-07-18 17:47:43 +00:00
.gitignore
Cargo.toml deps: update rustls-webpki. 2023-07-05 11:34:11 -04:00
README.md docs: add small README for fuzz testing suite. 2023-03-03 19:08:13 +01:00

README.md

Fuzz Testing

Rustls supports fuzz testing using cargo-fuzz. Fuzz tests are automatically run during continuous integration using oss-fuzz. You may also run fuzz tests locally. See the cargo-fuzz setup instructions for requirements.

# List available fuzzing targets.
$ cargo fuzz list
client
deframer
fragment
message
persist
servert

# Run the message fuzz target for a fixed period of time (expressed in seconds).
$ cargo fuzz run message -- -max_total_time=120

# Clean up generated corpus files
git clean --interactive -- ./corpus