Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rename and documentU2FAPDUHeader and fix Nc=0 (main branch)#191

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rmartinho merged 1 commit intomozilla:mainfrommicolous:main-iso7816
Oct 13, 2022

Conversation

@micolous
Copy link
Contributor

Addresses#190 on themain branch. The issues described here also affect thectap2-2021 branch (see#189).

  • Fixes an issue where Lc bytes would be included when Nc = 0 (zero command data length). This is incorrect in ISO 7816-4:2005 (which FIDO v1.1 and v1.2 correctly describe).

    This affected theGetVersion command; and tests have been updated accordingly.

  • RenamesU2FAPDUHeader toCTAP1RequestAPDU.

    Using the name "CTAP1" rather than "U2F" follows the convention put forward in FIDO v2.x specs, which avoids confusion like "U2Fv2" = "CTAP1".

    The previous implementation wasn't just "a header", but rather the complete APDU.

  • RenamesFidoDevice::send_apdu toFidoDevice::send_ctap1. This makes it more likeRequestCtap2, and avoids confusion later on when adding support for CTAP2 over NFC (which still uses ISO 7816-4 APDUs).

  • Documents and add tests forCTAP1RequestAPDU, explaining the confusing state of affairs.

* Fixes an issue where Lc bytes would be included when Nc = 0 (zero command data length). This is incorrect in ISO 7816-4:2005 (which FIDO v1.1 and v1.2 correctly describe).  This affected the `GetVersion` command; and tests have been updated accordingly.* Renames `U2FAPDUHeader` to `CTAP1RequestAPDU`.  Using the name "CTAP1" rather than "U2F" follows the convention put forward in FIDO v2.x specs, which avoids confusion like "U2Fv2" = "CTAP1".  The previous implementation wasn't just "a header", but rather the complete APDU.* Renames `FidoDevice::send_apdu` to `FidoDevice::send_ctap1`. This makes it more like `RequestCtap2`, and avoids confusion later on when adding support for CTAP2 over NFC (which still uses ISO 7816-4 APDUs).* Documents and add tests for `CTAP1RequestAPDU`, explaining the confusing state of affairs.
Copy link
Contributor

@rmartinhormartinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@rmartinhormartinhormartinho approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@micolous@rmartinho

[8]ページ先頭

©2009-2025 Movatter.jp