6 releases (3 breaking)

0.3.2 Oct 24, 2024
0.3.1 Oct 18, 2024
0.3.0 Aug 1, 2024
0.2.0 Jun 21, 2024
0.0.0-unreleased Apr 25, 2021

#203 in Authentication

Download history 18/week @ 2024-08-17 27/week @ 2024-08-24 22/week @ 2024-08-31 25/week @ 2024-09-07 34/week @ 2024-09-14 52/week @ 2024-09-21 129/week @ 2024-09-28 111/week @ 2024-10-05 239/week @ 2024-10-12 369/week @ 2024-10-19 95/week @ 2024-10-26 76/week @ 2024-11-02 112/week @ 2024-11-09 108/week @ 2024-11-16 46/week @ 2024-11-23 66/week @ 2024-11-30

349 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

125KB
3K SLoC

ctap-types maps the various types involved in the FIDO CTAP protocol to Rust structures consisting of heapless data types.

We currently follow the non-public editor's draft dated 19 March 2019. It still uses FIDO_2_1_PRE to signal new commands, but uses non-vendor API numbering (e.g. 0xA for credential management).

It also contains a lightweight CBOR deserializer, as the existing serde_cbor creates very large code.

The various transport protocols (USB, NFC, BLE) are expected to handle low-level protocol details and deserialize requests / serialize responses, so the authenticator logic is decoupled from these details.

Dependencies

~1.4–2.2MB
~49K SLoC