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

#262 in Authentication

Download history 230/week @ 2024-07-30 49/week @ 2024-08-06 56/week @ 2024-08-13 20/week @ 2024-08-20 30/week @ 2024-08-27 16/week @ 2024-09-03 29/week @ 2024-09-10 36/week @ 2024-09-17 55/week @ 2024-09-24 120/week @ 2024-10-01 156/week @ 2024-10-08 281/week @ 2024-10-15 326/week @ 2024-10-22 70/week @ 2024-10-29 63/week @ 2024-11-05 121/week @ 2024-11-12

630 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
~48K SLoC