Skip to content

Authdata - incosistency #839

Answered by LDVG
pionl asked this question in Q&A
Nov 27, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

Thanks for reaching out.

fido_cred_authdata_ptr() returns a pointer to the authenticator data encoded as a CBOR byte string, whereas fido_cred_authdata_raw_ptr() returns a pointer to the authenticator data itself.

In your example, it looks like you have not decoded the CBOR byte string before attempting to parse the authenticator data. The first two bytes of your "RpIdHash" contains a the CBOR byte string header 58 DA (CBOR major tag 2, length 218), followed by the bytes which you can see are identical to the RPID hash in the "raw" output.

Hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pionl
Comment options

Answer selected by pionl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants