Skip to content

test(ctap2): pin canonical CBOR and COSE vectors#279

Open
AlfioEmanueleFresta wants to merge 2 commits into
masterfrom
test/canonical-cbor-cose-golden-vectors
Open

test(ctap2): pin canonical CBOR and COSE vectors#279
AlfioEmanueleFresta wants to merge 2 commits into
masterfrom
test/canonical-cbor-cose-golden-vectors

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

There was no test pinning the exact wire bytes the stack emits, so a change in CBOR ordering or a serialization dependency could break interoperability silently. This pins golden vectors for a make-credential and a get-assertion request and for a COSE public key.

Part of #259.

Characterize the exact wire bytes the CborRequest encode path emits for a
fixed MakeCredential and GetAssertion request, and the COSE_Key bytes cosey
emits for a fixed P-256 public key. These fail if serde-indexed map ordering
or the cosey or serde-indexed byte layout drifts.
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:28
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as draft June 15, 2026 21:33
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant