Skip to content
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

Add pin_protocol field to HmacSecretInput #2

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

robin-nitrokey
Copy link
Member

The December 08, 2020 version of the Client to Authenticator Protocol
(CTAP) specification
added the pinUvAuthProtocol(0x04) field to the
input data for the hmac-secret extension in the
authenticatorGetAssertion command. This patch adds this new field to
the HmacSecretInput struct to make it possible to parse requests using
this new field.

Fixes #1.

The deserialization of authenticatorGetAssertion requests using the
hmac-secret extension as sent by e. g. python-fido2 currently fails.
This patch adds some tests with the offending input.
The December 08, 2020 version of the Client to Authenticator Protocol
(CTAP) specification added the pinUvAuthProtocol(0x04) field to the
input data for the hmac-secret extension in the
authenticatorGetAssertion command.  This patch adds this new field to
the HmacSecretInput struct to make it possible to parse requests using
this new field.
	https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html

Fixes trussed-dev#1.
@nickray
Copy link
Member

nickray commented Nov 24, 2021

Thanks!

@nickray nickray merged commit 3a5197b into trussed-dev:main Nov 24, 2021
robin-nitrokey added a commit to robin-nitrokey/ctap-types that referenced this pull request Jul 7, 2023
Make COSE deserialization more robust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for pinUvAuthProtocol(0x04) in HmacSecretInput
2 participants