-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
U2F over NFC #1510
U2F over NFC #1510
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, learned something reading this implementation draft. Thanks for your work!
buff_tx[0] = 0x02; | ||
*buff_tx_len = 0; | ||
FURI_LOG_D(TAG, "Something detected of length %d", buff_rx_len); | ||
if(buff_rx_len >= 24) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverse logic here. Test for buff_rx_len < 24
, eliminate a logical block.
return true; | ||
} | ||
if(u2f_nfc->state == StateUnselected && ins == 0xa4) { | ||
if(memcmp(&buff_rx[3], "\x04\x00\x08\xa0\x00\x00\x06\x47\x2f\x00\x01", 11) != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add more insights what the byte sequences mean? Datasheets, documentation or comments.
Hello everyone! Thanks @RvanBaarle for PR! I will close it for now, since we are not planning to support NFC over U2F in our firmware. However, if you want to continue working on it, you can write application and submit it to https://github.com/flipperdevices/flipper-application-catalog repository. If you have any questions, feel free to contact me on Discord. |
Well, if the core "U2F over USB" application is part of the main flipper OS (like it currently is), then really that same application should also handle the U2F over NFC.
|
What's new
Verification
Checklist (For Reviewer)