7 Commits
Author SHA1 Message Date
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 60b2029e96 Add trusted publishing 2026-03-24 13:02:03 +01: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
Robin Krahl 4c6a2cb509 Add arbitrary::Arbitrary implementations for requests
This makes it possible to use the requests in fuzzing.  The
implementations are behind an arbitrary feature.  As arbitrary requires
std, we also introduce a std feature.  Both new features are disabled by
default.
2024-06-27 10:58:49 +02:00
Robin Krahl bf5736b750 get_info: Put uncommon fields behind feature flag 2024-06-21 10:08:12 +02:00
Robin Krahl d172ccb154 Check all features in CI 2024-06-20 10:03:04 +02:00
Robin Krahl 9324f0094b Enable CI
This patch adds a CI config that builds and tests the library and runs
clippy and rustfmt.  To make the CI pass, it also fixes the formatting
and two clippy lints.  One of them is a breaking change:  We remove
AuthenticatorDataFlags::EMPTY.  Instead, AuthenticatorDataFlags::empty()
should be used.
2023-11-16 12:51:32 +01:00