mirror of https://github.com/ctz/rustls
17a7e17534
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. |
||
---|---|---|
.. | ||
corpus | ||
fuzzers | ||
.gitignore | ||
Cargo.toml | ||
README.md |
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