Skip to content
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

Fix type of AuthenticatorAttestationResponseJSON.publicKeyAlgorithm #2071

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emlun
Copy link
Member

@emlun emlun commented May 15, 2024

Fixes #2065.

AuthenticatorAttestationResponseJSON was added in the L3 drafts, so we can easily change
AuthenticatorAttestationResponseJSON.publicKeyAlgorithm to type long (or COSEAlgorithmIdentifier) since L3 isn't formally released yet. AuthenticatorAttestationResponseJSON.publicKeyAlgorithm is also in output (covariant) position, so changing its type to be more restrictive is even backwards compatible.

I misspoke on the 2024-05-15 call: I said the range of CBOR integers is any value whose size in bits can be represented by uint64_t. This was incorrect - uint64_t (2^64-1) is the max value range, not a value size range.


Preview | Diff

Fixes #2065.

`AuthenticatorAttestationResponseJSON` was added in the L3 drafts, so
we can easily change
`AuthenticatorAttestationResponseJSON.publicKeyAlgorithm` to type
`long` (or `COSEAlgorithmIdentifier`) since L3 isn't formally released
yet. `AuthenticatorAttestationResponseJSON.publicKeyAlgorithm` is also
in output (covariant) position, so changing its type to be more
restrictive is even backwards compatible.
@nadalin nadalin modified the milestone: Futures (catch-all) Jun 26, 2024
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.

Make AuthenticatorAttestationResponseJSON.publicKeyAlgorithm a long
4 participants