12 Commits
Author SHA1 Message Date
Sosthène Guédonandsosthene-nitrokey 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édonandsosthene-nitrokey 7cad43571d Fuzz nested APDUs 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 1bc7f4de46 Adapt fuzzer to changes 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 71520bca0f Attempt at stream based command serialization 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 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édonandsosthene-nitrokey 03445b9cb1 Make command serialization writer-based 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 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édonandsosthene-nitrokey 5ea74192e8 Fix clippy warnings 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey a785309b36 Add helpers to serialize to an std::vec 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey dd13b4d2c8 Fix commands being written with extended lengths when Le>255 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 99c0110100 Allow preventing support for extended apdus 2023-09-22 11:27:49 +02:00
Sosthène Guédonandsosthene-nitrokey 3bf7102ea1 Add CommandBuilder and fuzz it 2023-09-22 11:27:49 +02:00