[][src]Function sidefuzz::fetch_input

pub fn fetch_input(len: i32) -> &'static [u8]

Get an input of the desired length. This function should be called with a constant unchanging len argument. Calling it with different lengths will result in invalid fuzzing.

Example:

This example is not tested
let input = sidefuzz::fetch_input(32); // get 32 bytes of input
sidefuzz::black_box(my_contant_time_fn(input));