Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 912 Bytes

readme.md

File metadata and controls

38 lines (27 loc) · 912 Bytes

Fuzzing

This library uses Google's honggfuzz, for more information see the official page or the rust docs

Dependencies

  • C compiler: cc
  • GNU Make: make
  • GNU Binutils development files for the BFD library: libbfd.h
  • libunwind development files: libunwind.h
  • liblzma development files

To install on Debian:

sudo apt install build-essential binutils-dev libunwind-dev
cargo install honggfuzz

The best place to start probing is the unsafe code in the avx2 optimized version.

So to run on x86_64 platforms:

export RUSTFLAGS="-Z sanitizer=address -C target-cpu=native -C target-feature=+aes,+avx2,+sse2,+sse4.1,+bmi2,+popcnt"
cargo hfuzz run <TARGET>

Run different security levels and modes:

cargo hfuzz run <TARGET> --features "kyber512"

Current targets are:

  • keypair
  • encap
  • decap