INNER CODE UNIT · Rust

process_ctap_any_type

google/OpenSK · libraries/opensk/fuzz/fuzz_helper/src/lib.rs:138

pub fn process_ctap_any_type(data: &[u8]) -> arbitrary::Result<()> {
    let mut unstructured = Unstructured::new(data);

    let mut env = TestEnv::default();
    env.seed_rng_from_u64(u64::arbitrary(&mut unstructured)?);

    let data = unstructured.take_rest();
    // Initialize ctap state and hid and get the allocated cid.
    let mut ctap = Ctap::new(env);
    let cid = initialize(&mut ctap);
    // Wrap input as message with the allocated cid.
    let mut command = cid.to_vec();
    command.extend(data);
    process_message(&command, &mut ctap);
    Ok(())
}

fn setup_customization(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…