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

#317 in Authentication

Download history 70/week @ 2024-10-29 63/week @ 2024-11-05 140/week @ 2024-11-12 93/week @ 2024-11-19 35/week @ 2024-11-26 72/week @ 2024-12-03 98/week @ 2024-12-10 48/week @ 2024-12-17 7/week @ 2024-12-24 17/week @ 2024-12-31 83/week @ 2025-01-07 56/week @ 2025-01-14 105/week @ 2025-01-21 26/week @ 2025-01-28 69/week @ 2025-02-04 133/week @ 2025-02-11

352 downloads per month
Used in fido-authenticator

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.6–2.4MB
~55K SLoC