Skip to content

Commit

Permalink
add CtapReport
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm committed May 26, 2024
1 parent 1938150 commit 568ef38
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -978,3 +978,21 @@ impl From<u8> for SystemControlKey {
}
}
}

/// CtapReport describes a report and its companion descriptor that can be
/// used to present a FIDO-compatible authenticator device to the host.
#[gen_hid_descriptor(
(collection = APPLICATION, usage_page = FIDO_ALLIANCE, usage = U2F_AUTHENTICATOR_DEVICE) = {
(usage = INPUT_REPORT_DATA, logical_min = 0x0) = {
#[item_settings data,variable,absolute] data_in=input;
};
(usage = OUTPUT_REPORT_DATA, logical_min = 0x0) = {
#[item_settings data,variable,absolute] data_out=output;
};
}
)]
#[allow(dead_code)]
pub struct CtapReport {
pub data_in: [u8; 64],
pub data_out: [u8; 64],
}

0 comments on commit 568ef38

Please sign in to comment.