-
Notifications
You must be signed in to change notification settings - Fork 202
Add and prefer fully-specified COSE algorithm identifers in test vectors #2290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add and prefer fully-specified COSE algorithm identifers in test vectors #2290
Conversation
Unfortunately, the ESP256 self attestation test is wrong. The signature is using ES256 and not ESP256:
When we decode above, we get:
where non-ASCII is escaped with a leading
I haven't checked the rest of the tests, but it wouldn't surprise me if some of them are also incorrect. Making the above change leads to
which leads to successful parsing and ceremony validation for both registration and authentication ceremonies from my library. Specifically, the 25th byte (0-based index) needs to be |
Thanks @zacknewman, good catch! It certainly makes sense that the self attestation case should use the same |
Of course. I was referring to self attestation specifically since the private key used to sign the payload is the same as the credential private key thus should use the same identifier (and the spec mandates that the identifier used be the same as the identifier used in the COSE key portion of the attested credential data). Thanks for the additional tests! |
(This meta-PR would merge into #2283, not directly to main)
As requested in #2283 (comment), this updates the test vectors section to primarily use fully-specified
COSEAlgorithmIdentifier
s (but still include examples of polymorphic ones). This also adds an Ed448 case since that was not previously expressible.This relies on an unofficial version of
python-fido2
since its latest official version (1.2.0
) does not include support for the new fully-specifiedCOSEAlgorithmIdentifier
s.Preview | Diff