richard redpath
unread,Oct 23, 2023, 6:26:24 PM10/23/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FIDO Dev (fido-dev), My1, FIDO Dev (fido-dev), richard redpath
Yes I did see that URL which talks about the concatenation
so if my
AuthenticatorData is this
"
49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000"
which is really this in its parts
var
RPIDhash = "49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d9763"; //256 hash of "localhost" (32 bytes)
var
flags = "1d"; //1 byte
var
counter = "00000000"; //do not need one 4 bytes
and my
clientData is this data string.
{"type":"webauthn.get","challenge":"KnJpY2hhcmRyZWRwYXRoKg","origin":"http://localhost:5000","crossOrigin":false,"other_keys_can_be_added_here":"do not compare clientDataJSON against a template. See https://goo.gl/yabPex"}which is hashed to this
78bb32a61d3e7e48c1b2e161ac086a9b3b1d626c24e9ce115b533782a1aa833aThe concatenation is this for the message.
49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000078bb32a61d3e7e48c1b2e161ac086a9b3b1d626c24e9ce115b533782a1aa833awhich is what I see as a dump
messageb'49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000078bb32a61d3e7e48c1b2e161ac086a9b3b1d626c24e9ce115b533782a1aa833a'Now Do I take this message (binary data) and sign it for the Signature?
I would take this binary data
b'49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000078bb32a61d3e7e48c1b2e161ac086a9b3b1d626c24e9ce115b533782a1aa833a'
and hash256 it to this
cf6a03cee7ee0340986f9cd02a50ef3a442a809b737ba6aa74d23711102a2165
and then sign the Hash256 for the signature.
I assume the FIDO server takes the message and makes a hash256 to verify it with the signature.
Thanks in advance.