INNER CODE UNIT · Rust
Ok
google/OpenSK · libraries/opensk/fuzz/fuzz_helper/src/lib.rs:89
if let Ok(Some(result)) = assembler_reply.parse_packet(ctap.env(), cid, processed_pkt) {
result_cid.copy_from_slice(&result.payload[8..12]);
}
}
}
result_cid
}
// Checks whether the given data can be interpreted as the given type.
fn is_type(data: &[u8], input_type: InputType) -> bool {
if input_type == InputType::Ctap1 {
return true;
}
match cbor_read(data) {
Err(_) => false,
Ok(decoded_cbor) => match input_type {
InputType::CborMakeCredentialParameter => {
AuthenticatorMakeCredentialParameters::try_from(decoded_cbor).is_ok()