Skip to content

Changes

Started by upstream project gerrit-simtrace2 #118
Started 1 day 2 hr ago
Queued 6.5 sec
Took 1 min 52 sec on build5-deb12build-ansible
firmware: card_emu: fix 7816-3 10.3.2 0=256 case

add_tpdu_byte() accumulates bytes received from the reader, but passes
reader_to_card = 0, but ISO 7816-3 10.3.2 says P3 == 0 means 256 not 0

Only reachable with P3 == 0 in a receive data phase, but
simtrace2-cardem-pcsc only requests PB_AND_RX when there is command data.

Fix this anyway.

Change-Id: I0fa4741bc1293549816595e6b4e8af9e22bcfbc1
ewild at