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

#304 in Authentication

Download history 29/week @ 2024-09-11 38/week @ 2024-09-18 60/week @ 2024-09-25 136/week @ 2024-10-02 134/week @ 2024-10-09 311/week @ 2024-10-16 299/week @ 2024-10-23 74/week @ 2024-10-30 80/week @ 2024-11-06 140/week @ 2024-11-13 69/week @ 2024-11-20 60/week @ 2024-11-27 71/week @ 2024-12-04 81/week @ 2024-12-11 36/week @ 2024-12-18 6/week @ 2024-12-25

225 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