Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure large-blobs buffer size with feature flag
The buffer size used in the response to the large-blobs command should match the maximum message size of the FIDO2 implementation (minus 64). At the same time, the buffer size must be hardcoded because serde-indexed does not support const generics. As a temporary workaround, this patch changes the default buffer size to zero (to reduce stack usage if the extension is not used) and sets the buffer size to 3008 if the large-blobs feature is activated (matching the max message size declared by usbd-ctaphid that is used in solo2 and nitrokey-3-firmware).
- Loading branch information