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

Move CTAPHID commands under a single vendor command #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robin-nitrokey
Copy link
Contributor

Previously, we used one CTAPHID vendor command per application command. This makes it hard to extend the functionality because we have to synchronize the used vendor commands over all applications in the Trussed ecosystem.

As an alternative, this patch introduces a new vendor command that acts as a namespace for the admin application. The actual application command is encoded in the first byte of the payload. In the future, we might want to make this configurable so that the runner can decide the namespace used by CTAPHID apps.

For compatibility, the CTAPHID vendor commands are still available.

This change also allows us to combine the CTAPHID and APDU command handling into a single dispatch function.

Previously, we used one CTAPHID vendor command per application command.
This makes it hard to extend the functionality because we have to
synchronize the used vendor commands over all applications in the
Trussed ecosystem.

As an alternative, this patch introduces a new vendor command that acts
as a namespace for the admin application.  The actual application
command is encoded in the first byte of the payload.  In the future, we
might want to make this configurable so that the runner can decide the
namespace used by CTAPHID apps.

For compatibility, the CTAPHID vendor commands are still available.

This change also allows us to combine the CTAPHID and APDU command
handling into a single dispatch function.
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.

1 participant