components

Module ctap

Source
Expand description

Component for CTAP HID over USB support.

This provides a component for using the CTAP driver. This allows for Client to Authenticator Protocol Authentication.

§Usage

static STRINGS: &'static [&str; 3] = &[
    "XYZ Corp.",     // Manufacturer
    "FIDO Key",      // Product
    "Serial No. 5",  // Serial number
];

    let (ctap, ctap_driver) = components::ctap::CtapComponent::new(
        &earlgrey::usbdev::USB,
        0x1337, // My important company
        0x0DEC, // My device name
        strings,
        board_kernel,
        ctap_send_buffer,
        ctap_recv_buffer,
    )
    .finalize(components::ctap_component_static!(lowrisc::usbdev::Usb));

    ctap.enable();
    ctap.attach();

Structs§