garble

Crates.iogarble
lib.rsgarble
version0.0.1
sourcesrc
created_at2022-02-22 20:06:14.240241
updated_at2022-02-22 20:06:14.240241
descriptionUtilities to slightly modify data for fault injection
homepage
repositoryhttps://github.com/nmoutschen/garble
max_upload_size
id537444
size6,837
Nicolas Moutschen (nmoutschen)

documentation

README

Data garbling crate

The purpose of this crate is to provide a way to slightly modify data in controlled way for fault injection purposes.

Example

use garble::{Garble, SimpleGarbler};

// Create a garbler with a 50% probability of garbling data
let mut garbler = SimpleGarbler::new(0.5);

// Garble some data
dbg!(true.garble(&mut garbler));
dbg!(128u64.garble(&mut garbler));
dbg!((3.5_f32).garble(&mut garbler));
Commit count: 26

cargo fmt