Commit Graph

144 Commits

Author SHA1 Message Date
Robin Krahl bb4f857a2c Add constants for enum sizes 2026-05-22 12:43:36 +02:00
Emanuele Cesena af3a162115 ctap2.3: add wire types for FIDO_2_3, smart-card transport, enableLongTouchForReset 2026-05-22 12:43:32 +02:00
Emanuele Cesena 130c4663ab ctap2.2: add wire types for FIDO_2_2 and hmac-secret-mc 2026-05-22 12:43:28 +02:00
Emanuele Cesena e5bd6cabc9 ctap2.1: add wire types for credBlob, minPinLength, authenticatorConfig 2026-05-22 12:43:23 +02:00
Robin Krahl 94c5b5586e ctap2::get_info: Fix field order for canonical CBOR
This patch fixes the field order of the CtapOptions and Certifications
struct so that we produce canonical CBOR when serializing them with
cbor-smol.
2026-05-18 10:20:33 +02:00
Robin Krahl c0aadea9b8 Test canonical encoding of serialized structs
This patch makes sure that all structs use the canonical CBOR encoding
as defined and required by § 8 Message Encoding of the CTAP
specification [0].

Structs using serde_indexed::SerializeIndexed are not tested because
in serde-indexed v0.1.1, the correct order is automatically enforced.

[0] https://fidoalliance.org/specs/fido-v2.2-ps-20250714/fido-client-to-authenticator-protocol-v2.2-ps-20250714.html#message-encoding
2026-05-13 16:05:11 +02:00
Robin Krahl 7d8122b417 Release v0.5.0 0.5.0 2026-03-25 11:26:13 +01:00
Robin Krahl 60b2029e96 Add trusted publishing 2026-03-24 13:02:03 +01:00
Sosthène Guédon cff44662b4 Bump heapless dependency 2025-10-06 17:41:20 +02:00
Robin Krahl 92f7ffded4 Release v0.4.0 0.4.0 2025-05-09 11:23:46 +02:00
Robin Krahl 50d966a247 ctap2::client_pin: Make pin_protocol optional in Request
Since CTAP 2.1, the pin_protocol argument is optional for client_pin
requests, see:

https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authnrClientPin-cmd-dfn
2025-05-09 11:23:46 +02:00
Robin Krahl eb784977ac Fix lifetime annotations
This fixes a new clippy lint.
2025-05-09 11:23:36 +02:00
Robin Krahl 211c1c22c7 Add missing log-trace feature 2025-05-09 11:20:45 +02:00
Robin Krahl 496fec4e73 Release v0.3.2 0.3.2 2024-10-24 19:18:34 +02:00
Robin Krahl 6f860a2dfe Update cbor-smol to v0.5.0 2024-10-22 14:24:11 +02:00
Robin Krahl 5dc6a32ebd Add support for iso7816::command::CommandView 0.3.1 2024-10-18 11:04:21 +02:00
Robin Krahl 4b3953aa4a Prefer inspect_err over map_err
This fixes a new clippy lint.
2024-10-18 09:39:26 +02:00
Sosthène Guédon 699539a800 Prepare release 0.3.0 0.3.0 2024-08-01 15:51:46 +02:00
Robin Krahl 72eb68b61e Implement Copy for ctap2::AttestationStatementFormat
This change was accidentally removed from
https://github.com/trussed-dev/ctap-types/pull/51 during a rebase.
2024-06-27 12:02:29 +02:00
Robin Krahl ff20dfb504 Add support for attestation format preferences 2024-06-27 11:34:40 +02:00
Robin Krahl a62ef30003 Add enterprise attestation support to get_assertion 2024-06-27 11:32:00 +02:00
Robin Krahl fd403fdd07 Add unsigned extension outputs 2024-06-27 11:23:15 +02:00
Robin Krahl a7b9168178 Update get_info for CTAP 2.2 2024-06-27 11:21:56 +02:00
Robin Krahl 5e4c69b0e3 Implement thirdPartyPayment extension 2024-06-27 11:18:19 +02:00
Robin Krahl d8bf6ea0f8 Extend fuzzing for ctap1 and ctap2 requests
Previously, we only fuzzed the deserialization of
PublicKeyCredentialUserEntity.  This patch replaces that fuzz target
with the deserialization of entire ctap1 and ctap2 requests.
2024-06-27 11:07:35 +02:00