13 Commits

Author SHA1 Message Date
Sosthène Guédon
24443bbada Fix review comments 2023-09-22 11:27:49 +02:00
Sosthène Guédon
80cb97c8e1 Add option to force use of extended length
Some application refuse to return more than 255 bytes of data if the request
does not use extended length APDUs
2023-09-22 11:27:49 +02:00
Sosthène Guédon
7cad43571d Fuzz nested APDUs 2023-09-22 11:27:49 +02:00
Sosthène Guédon
1bc7f4de46 Adapt fuzzer to changes 2023-09-22 11:27:49 +02:00
Sosthène Guédon
71520bca0f Attempt at stream based command serialization 2023-09-22 11:27:49 +02:00
Sosthène Guédon
4217224a8c Separate the chaining support from the serialization, making the simple path (unlimited length and extended support) more straightforward 2023-09-22 11:27:49 +02:00
Sosthène Guédon
03445b9cb1 Make command serialization writer-based 2023-09-22 11:27:49 +02:00
Sosthène Guédon
2424f6fe73 Fix LE = 256 forcing extended length when it can be encoded as 0 2023-09-22 11:27:49 +02:00
Sosthène Guédon
5ea74192e8 Fix clippy warnings 2023-09-22 11:27:49 +02:00
Sosthène Guédon
a785309b36 Add helpers to serialize to an std::vec 2023-09-22 11:27:49 +02:00
Sosthène Guédon
dd13b4d2c8 Fix commands being written with extended lengths when Le>255 2023-09-22 11:27:49 +02:00
Sosthène Guédon
99c0110100 Allow preventing support for extended apdus 2023-09-22 11:27:49 +02:00
Sosthène Guédon
3bf7102ea1 Add CommandBuilder and fuzz it 2023-09-22 11:27:49 +02:00