Skip to content

Conversation

@robin-nitrokey
Copy link
Member

ctaphid-dispatch v0.3.0 makes Dispatch generic over the message size
instead of using a constant value. This patch adapts usbd-ctaphid to
this patch and changes the usbd-ctaphid buffer to use the same buffer
size as ctaphid-dispatch. (Previously, we used 3072 and
ctaphid-dispatch used 7609.) This means that we no longer need the
MESSAGE_SIZE constant and can remove it.


Please double-check that we can indeed use the same buffer size for usbd-ctaphid and ctaphid-dispatch.

Depends on:

This fixes a new compiler warning.
ctaphid-dispatch v0.3.0 makes Dispatch generic over the message size
instead of using a constant value.  This patch adapts usbd-ctaphid to
this patch and changes the usbd-ctaphid buffer to use the same buffer
size as ctaphid-dispatch.  (Previously, we used 3072 and
ctaphid-dispatch used 7609.)  This means that we no longer need the
MESSAGE_SIZE constant and can remove it.
This release updates ctaphid-dispatch to v0.3.0 and makes usbd-ctaphid
also generic over the buffer size.
@robin-nitrokey robin-nitrokey merged commit 998db11 into main Mar 25, 2025
2 checks passed
@robin-nitrokey robin-nitrokey deleted the message-size branch March 25, 2025 21:38
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.

4 participants