Skip to content

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

Merged
AlfioEmanueleFresta merged 2 commits into
masterfrom
test/canonical-cbor-cose-golden-vectors
Jun 19, 2026
Merged

test(ctap2): pin canonical CBOR and COSE vectors#279
AlfioEmanueleFresta merged 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.

@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
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 force-pushed the test/canonical-cbor-cose-golden-vectors branch from 0268fc4 to 1c678e2 Compare June 19, 2026 21:33
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 3286922 into master Jun 19, 2026
4 of 5 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the test/canonical-cbor-cose-golden-vectors branch June 19, 2026 21:34
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