3 releases (breaking)

0.2.0 Jun 21, 2024
0.1.2 Mar 7, 2022
0.1.1 Mar 7, 2022
0.1.0 Mar 5, 2022
0.0.0-unreleased Apr 25, 2021

#201 in Authentication

Download history 8/week @ 2024-03-11 8/week @ 2024-03-18 31/week @ 2024-04-01 6/week @ 2024-04-08 24/week @ 2024-04-15 14/week @ 2024-04-22 4/week @ 2024-05-06 8/week @ 2024-05-13 4/week @ 2024-05-20 10/week @ 2024-05-27 10/week @ 2024-06-03 4/week @ 2024-06-10 161/week @ 2024-06-17 139/week @ 2024-06-24

315 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

71KB
1.5K 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.5–2.2MB
~49K SLoC