94 Commits
Author SHA1 Message Date
Robin Krahl b28765bb72 Release v0.4.0 0.4.0 2026-03-25 11:27:49 +01:00
Robin Krahl ad2f75100c Add trusted publishing 2026-03-24 13:05:56 +01:00
Robin Krahl 89bdfc8d42 Add CI workflow 2026-03-24 13:05:33 +01:00
Sosthène GuédonandRobin Krahl c0c5b92e87 Update to heapless 0.9 2026-03-23 14:08:51 +01:00
Sosthène Guédon ed5bd863a2 Fix new warnings 2025-08-22 16:35:37 +02:00
Robin KrahlandNicolas 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édonandMarkus Meissner c932f7240d Update changelog 2023-06-20 16:14:03 +02:00
Sosthène GuédonandMarkus Meissner dfac5b0360 Migrate to interchange 0.3.0 2023-06-20 16:14:03 +02:00
Sosthène Guédonandsosthene-nitrokey f2c2f7999b Remove panics on invalid chain parameter 2023-06-19 08:45:53 +02:00
Sosthène Guédonandsosthene-nitrokey edb14da9b3 Add packet helper functions to avoid unwrapping 2023-06-19 08:45:53 +02:00
Sosthène Guédonandsosthene-nitrokey 930982e25c Avoid panics in class 2023-06-19 08:45:53 +02:00
Sosthène Guédonandsosthene-nitrokey edfb8584d5 Fix panics in pipe.rs 2023-06-19 08:45:53 +02:00
Sosthène GuédonandNicolas Stalder 50912999b3 Prepare release 0.2.0 0.2.0 2023-02-07 02:20:28 +01:00
Sosthène GuédonandRobin 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édonandRobin Krahl 1a2b703245 Use assert! in const 2023-01-31 10:27:49 +01:00
Markus MeissnerandGitHub 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édonandRobin Krahl 84de5d4fe3 Remove public modules 2023-01-26 20:54:03 +01:00
Sosthène GuédonandRobin 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édonandRobin Krahl fe4424496f Remove unused items 2023-01-26 20:54:03 +01:00
Sosthène GuédonandRobin 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-nitrokeyandGitHub d2af0efeff Merge pull request #3 from trussed-dev/fix-fmt
Fix formatting error
2023-01-25 13:27:05 +01:00
Robin KrahlandGitHub c9d9a06227 Merge pull request #4 from trussed-dev/alloc
Remove `'static` requirement on the bus
2023-01-25 12:02:03 +01:00