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

Fix maximum response length check #10

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

robin-nitrokey
Copy link
Member

To decide whether we send out the response in whole or in chunks, we not only have to compare the length with the maximum length supported by interchange but also with the maximum response length specified in the request APDU.

@sosthene-nitrokey
Copy link
Contributor

My bad I missed this in #5

Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey left a comment

Choose a reason for hiding this comment

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

The tests need fixing. Otherwise LGTM.

To decide whether we send out the response in whole or in chunks, we not
only have to compare the length with the maximum length supported by
interchange but also with the maximum response length specified in the
request APDU.
@robin-nitrokey
Copy link
Member Author

I’ve added the missing Le fields to the tests, let’s see if the CI is happy.

@robin-nitrokey robin-nitrokey merged commit f3533d1 into trussed-dev:main Feb 6, 2023
@robin-nitrokey robin-nitrokey deleted the max-response-len branch February 6, 2023 14:47
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.

None yet

2 participants