INNER CODE UNIT · Rust

setup_state

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

fn setup_state(
    unstructured: &mut Unstructured,
    state: &mut CtapState<TestEnv>,
    env: &mut TestEnv,
) -> FuzzResult<()> {
    if bool::arbitrary(unstructured)? {
        test_helpers::enable_enterprise_attestation(state, env).ok();
    }
    Ok(())
}

// Interprets the raw data as of the given input type and
// invokes message splitting, packet processing at CTAP HID level and response assembling
// using an initialized and allocated channel.
pub fn process_ctap_specific_type(data: &[u8], input_type: InputType) -> arbitrary::Result<()> {
    let mut unstructured = Unstructured::new(data);

    let mut env = TestEnv::default();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…