Commit Graph

35 Commits

Author SHA1 Message Date
Sosthène Guédon 9e07900934 Add interface to select call
This allows application that do not support NFC to reject operations comming from NFC
Previously Select calls could not be rejected.
2023-06-27 14:31:22 +02:00
Sosthène Guédon b72d5eb9f4 Add Channel helper type 2023-06-08 10:24:23 +02:00
Sosthène Guédon e8a4bac865 Remove unused types.rs file 2023-06-08 10:24:23 +02:00
Sosthène Guédon a6f00115ad Fix typo: Responder => Requester 2023-05-03 10:56:35 +02:00
Sosthène Guédon cf6fedc5b2 Migrate to interchange 0.3.0 2023-02-14 10:45:07 +01:00
Sosthène Guédon fa83d6bca5 Add a new request type for incorrect commands and return errors for invalid Select commands 2023-02-06 17:11:05 +01:00
Sosthène Guédon 28ac8cd592 Fix clippy warnings 2023-02-06 16:54:51 +01:00
Sosthène Guédon 923a731d31 Run cargo fmt 2023-02-06 16:54:51 +01:00
Sosthène Guédon fe40478467 Replace Aid::new with Aid::try_new
Fixes #7
2023-02-06 16:09:20 +01:00
Robin Krahl f3533d1722 Fix maximum response length check
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.
2023-02-06 15:47:27 +01:00
Sosthène Guédon d1b8498ba3 Fix panic on response larger than interchanges::SIZE or response::SIZE 2022-08-22 13:43:52 +02:00
Sosthène Guédon 97bd15f018 Fix reponse chaining
The responses now respect the `Le` field in the commands
2022-08-22 13:43:52 +02:00
Sosthène Guédon efec0465f4 Fix clippy warnings 2022-08-22 13:24:27 +02:00
Conor Patrick b4a4204693 fix select bug, refactor tests to new app+heapless 2021-07-13 16:47:37 -07:00
Nicolas Stalder 644336c38b Bump heapless 2021-06-10 23:21:41 +02:00
Nicolas Stalder b7a9ecd185 Use iso7816::Aid 2021-06-10 18:17:17 +02:00
Conor Patrick e5da4ac45c rename CanThisReallyOccur 2021-05-26 21:24:35 -07:00
Nicolas Stalder fece7091c6 Make debug logs symmetric in send + recv 2021-05-18 02:07:48 +02:00
Nicolas Stalder 29e8a6b12c Fix lifetimes 2021-05-16 22:52:42 +02:00
Nicolas Stalder c3d3798ef1 The great renaming
- name things by what they are
- try and make then names human readable
2021-04-25 16:31:25 +02:00
Conor Patrick aa37c553fc simplify size definitions and use chaining if interchange buffer is too small for response 2021-04-25 16:31:25 +02:00
Conor Patrick e4dcf88b32 update apdu-dispatch for new Data reply 2021-04-25 16:31:25 +02:00
Conor Patrick 1c3815d9c9 remove functions that return large buffers, remove defer+poll for applet trait 2021-04-25 16:31:25 +02:00
Conor Patrick a098780ce8 Move size definitions for large buffers to apdu-dispatch 2021-04-25 16:31:25 +02:00
Conor Patrick 0fed53d3db clean up usb handling and fix ccid timeout issue 2021-04-13 23:14:07 +02:00