[webauthn] Merged Pull Request: Fix type of AuthenticatorAttestationResponseJSON.publicKeyAlgorithm

emlun has just merged emlun's pull request 2071 for https://github.com/w3c/webauthn:

== Fix type of AuthenticatorAttestationResponseJSON.publicKeyAlgorithm ==
Fixes https://github.com/w3c/webauthn/issues/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](https://datatracker.ietf.org/doc/html/rfc7049#section-2.1) 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.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/w3c/webauthn/pull/2071.html" title="Last updated on May 15, 2024, 8:26 PM UTC (c8eeef5)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/webauthn/2071/62b069e...c8eeef5.html" title="Last updated on May 15, 2024, 8:26 PM UTC (c8eeef5)">Diff</a>

See https://github.com/w3c/webauthn/pull/2071


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 11 July 2024 12:54:12 UTC