Robin Krahl and Nicolas Stalder
0a31e9cf7c
Release v0.3.0
0.3.0
2023-11-22 14:50:19 +01:00
Sosthène Guédon
eeea54f85c
Fix compilation with delog enabled
2023-06-20 16:23:18 +02:00
Sosthène Guédon and Markus Meissner
c932f7240d
Update changelog
2023-06-20 16:14:03 +02:00
Sosthène Guédon and Markus Meissner
dfac5b0360
Migrate to interchange 0.3.0
2023-06-20 16:14:03 +02:00
Sosthène Guédon and sosthene-nitrokey
f2c2f7999b
Remove panics on invalid chain parameter
2023-06-19 08:45:53 +02:00
Sosthène Guédon and sosthene-nitrokey
edb14da9b3
Add packet helper functions to avoid unwrapping
2023-06-19 08:45:53 +02:00
Sosthène Guédon and sosthene-nitrokey
930982e25c
Avoid panics in class
2023-06-19 08:45:53 +02:00
Sosthène Guédon and sosthene-nitrokey
edfb8584d5
Fix panics in pipe.rs
2023-06-19 08:45:53 +02:00
Sosthène Guédon and Nicolas Stalder
50912999b3
Prepare release 0.2.0
0.2.0
2023-02-07 02:20:28 +01:00
Sosthène Guédon and Robin Krahl
693b647b03
Fix clippy warnings
2023-02-02 20:50:40 +01:00
Robin Krahl
7de7b416b7
Implement abort handling
...
Previously, we just panicked when receiving an abort request. This
caused a long delay in scdaemon/gnupg when the NK3 was connected. With
this patch, we add abort handling to usb-ccid to fix this issue.
The implementation is based on Section 5.3.1 of the CCID specification
[0]. The device is expected to send two abort messages, one over the
bulk endpoint and one over the control pipe. We perform the abort once
we have received both messages. In the time between receiving the first
and the second message, we reject all incoming messages on the bulk
endpoint.
[0] https://www.usb.org/sites/default/files/DWG_Smart-Card_CCID_Rev110.pdf
2023-01-31 10:28:25 +01:00
Sosthène Guédon and Robin Krahl
1a2b703245
Use assert! in const
2023-01-31 10:27:49 +01:00
Markus Meissner and GitHub
7e6cc15da7
Merge pull request #6 from trussed-dev/fix-calc
...
fix calculation during packet handling
2023-01-30 22:32:02 +01:00
Markus Meissner
1f9b6820a8
fix long_packet_missing calculation
2023-01-30 22:26:03 +01:00
Sosthène Guédon and Robin Krahl
84de5d4fe3
Remove public modules
2023-01-26 20:54:03 +01:00
Sosthène Guédon and Robin Krahl
6e589d6b76
Remove the PowerSelection enum
...
This could be usefull for a smartcard reader's firmware,
but is not useful to our use-case, and was currently used anyway.
2023-01-26 20:54:03 +01:00
Sosthène Guédon and Robin Krahl
fe4424496f
Remove unused items
2023-01-26 20:54:03 +01:00
Sosthène Guédon and Robin Krahl
1c4c9fda5c
Fix visibility
...
All the internals of the crate were public. This patch makes a lot more private
to allow evolution without everything being a breaking change
2023-01-26 20:54:03 +01:00
sosthene-nitrokey and GitHub
d2af0efeff
Merge pull request #3 from trussed-dev/fix-fmt
...
Fix formatting error
2023-01-25 13:27:05 +01:00
Robin Krahl and GitHub
c9d9a06227
Merge pull request #4 from trussed-dev/alloc
...
Remove `'static` requirement on the bus
2023-01-25 12:02:03 +01:00
Sosthène Guédon
a3069b39fe
Remove 'static requirement on the bus
...
This is required by https://github.com/trussed-dev/pc-usbip-runner
2023-01-25 11:53:57 +01:00
Sosthène Guédon
70cb2df93a
Fix formatting error
2023-01-25 11:31:46 +01:00
Robin Krahl and GitHub
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