You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the process of deserializing AuthenticatorData within attestation.rs, it is observed that when the flags indicate an extension, and upon parsing the cbor map, it is found to be empty, this empty map is saved. However, during serialization, the presence of an empty map leads to the omission of the extension field, while the flags still indicate the presence of an extension. This inconsistency results in AuthenticatorData read in Firefox being one byte shorter than what is saved in cbor.
According to CTAP 2 specifications, it states: "If the authenticator does not include any extension data, it MUST set the ED flag to zero, and to one if extension data is included." I am uncertain whether an empty map qualifies as legal extension data, but for better compatibility, I suggest that authenticator-rs supports this behavior.
The text was updated successfully, but these errors were encountered:
In the process of deserializing
AuthenticatorData
withinattestation.rs
, it is observed that when theflags
indicate an extension, and upon parsing thecbor
map, it is found to be empty, this empty map is saved. However, during serialization, the presence of an empty map leads to the omission of theextension
field, while theflags
still indicate the presence of an extension. This inconsistency results inAuthenticatorData
read in Firefox being one byte shorter than what is saved incbor
.According to CTAP 2 specifications, it states: "If the authenticator does not include any extension data, it MUST set the ED flag to zero, and to one if extension data is included." I am uncertain whether an empty map qualifies as legal extension data, but for better compatibility, I suggest that
authenticator-rs
supports this behavior.The text was updated successfully, but these errors were encountered: