68 Commits
Author SHA1 Message Date
Sosthène Guédon 70cb2df93a Fix formatting error 2023-01-25 11:31:46 +01:00
Robin KrahlandGitHub 3826ffebf0 Merge pull request #1 from trussed-dev/nitrokey-upstreaming
Upstream changes from the Nitrokey firmware repository
2023-01-25 11:25:38 +01:00
Sosthène Guédon 0dc5ac9d8c Rename packet_len to data_len
This makes the distinction clearer between the length of the USB packet
and the length of the data its CCID header references
2023-01-25 10:11:53 +01:00
Sosthène Guédon 9d3949659c Fix https://github.com/Nitrokey/nitrokey-3-firmware/issues/150
When using highspeed usb, some calculations worked with usb 1 constants.
This caused packets to be handled improperly.
2023-01-25 10:11:31 +01:00
Sosthène Guédon 34d587cf77 Improve usage of constants to avoid magic valuse 2023-01-25 10:11:31 +01:00
Sosthène Guédon 06bf940f3a Log errors 2023-01-25 10:11:31 +01:00
Sosthène Guédon 7434e799f1 Stop using undocumented Interchange APIs
This doesn't change the panic risk. The internal `rp_mut` method uses
the `unreachable!` macro
2023-01-25 10:11:23 +01:00
Sosthène Guédon a92755abd3 Add error message to panic 2023-01-25 10:11:23 +01:00
Sosthène Guédon 0a7bd5c4e4 Use == for readability 2023-01-25 10:11:23 +01:00
Sosthène Guédon ef34467e87 Fix links and add basic docs 2023-01-25 10:11:23 +01:00
Sosthène Guédon cf11d375b7 Fix typo 2023-01-25 10:11:23 +01:00
Sosthène Guédon e3cb8acfef Fix panic when running on x86_64
The length of usize::to_be_bytes depends on the size of the pointer on the
targeted cpu architecture
2023-01-25 10:11:23 +01:00
Sosthène Guédon 82c26f2391 Replace dynamic assert with const assert 2023-01-25 10:11:22 +01:00
Sosthène Guédon 3711ae0b32 Remove empty tlv module 2023-01-25 09:18:49 +01:00
Nicolas Stalder 091410952b Missing description 0.1.0 2023-01-24 22:51:48 +01:00
Nicolas Stalder 19893557d1 cargo fmt 2023-01-24 22:48:43 +01:00
Nicolas Stalder 55e219fc7c Prepare release, run clippy 2023-01-24 22:48:29 +01:00
Nicolas StalderandConor Patrick c1f81e9ec0 Adjust to interchange changes 2022-08-25 08:47:46 -07:00
Nicolas StalderandNicolas Stalder 38daaf1686 Bump dependencies to published versions 2022-03-17 23:23:14 +01:00
Nicolas StalderandNicolas Stalder d326ae2c6d Inline never in usbd-{ccid,ctaphid} 2022-03-17 23:23:14 +01:00
Nicolas StalderandNicolas Stalder 64f0368635 Extract admin-app 2021-11-25 00:46:10 +01:00
Nicolas StalderandNicolas Stalder 4fb10fc65c Bump heapless and all that bumped it 2021-06-10 18:25:18 -04:00
Nicolas StalderandNicolas Stalder 082242ea02 Configure CCID ATR 2021-06-10 10:38:49 -04:00
Nicolas StalderandNicolas Stalder aaa90fb87f Make usbd-ccid generic to avoid apdu-dispatch dependency 2021-05-10 21:15:10 +02:00
Nicolas StalderandNicolas Stalder cf4d8fd4e2 fix CCID CONTROL IN responses, add iInterface 2021-05-03 04:01:21 +02:00