WIP Add ctap hid api
This is a draft PR for the CTAP HID api. I still have to implement the actual read/write using the usbd-ctaphid crate. Just wanted to get initial feedback on the approach.
I'm copying the read/write signatures we have in the usb-serial API currently. Do we also want to have the asynchronous reads/writes like we have in the usb serial api?
ccing @kaczmarczyck who might also have ideas on how to implement the authenticator side of CTAP2
ccing @kaczmarczyck who might also have ideas on how to implement the authenticator side of CTAP2
I assume you mean CTAP HID instead of CTAP2? And you need descriptors etc? OpenSK has this for Tock:
https://github.com/google/OpenSK/blob/2.1/patches/tock/03-add-ctap-modules.patch
I assume you mean CTAP HID instead of CTAP2?
Yes
And you need descriptors etc?
Not necessarily. It depends on the crate. I guess the HID crate would provide some support for the report. And the USB crate definitely provided support for descriptors.
(By the way, the code you reviewed was copy-pasted and will probably not make it to the end.)
Closing this in favor of #734 and its follow-ups (most probably using usbd-hid, or possibly usbd-human-interface-device).