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

Upstream changes from the Nitrokey firmware repository #1

Merged
merged 12 commits into from
Jan 25, 2023

Conversation

sosthene-nitrokey
Copy link
Contributor

This include some better error reporting and readability improvements. It also removes the use of undocumented APIs from interchange and fixes two bugs:

  • Panic on 64 bit targets
  • Bad length check with highspeed-usb

This includes some breaking changes though.

It also looks like too much of the crate is public. I'll make another PR adressing that.

The length of usize::to_be_bytes depends on the size of the pointer on the
targeted cpu architecture
This doesn't change the panic risk. The internal `rp_mut` method uses
the `unreachable!` macro
When using highspeed usb, some calculations worked with usb 1 constants.
This caused packets to be handled improperly.
This makes the distinction clearer between the length of the USB packet
and the length of the data its CCID header references
@robin-nitrokey robin-nitrokey merged commit 3826ffe into main Jan 25, 2023
@robin-nitrokey robin-nitrokey deleted the nitrokey-upstreaming branch January 25, 2023 10:26
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.

2 participants