mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 12:58:14 +02:00
Fix chaining long APDU.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -125,7 +125,7 @@ uint16_t apdu_process(uint8_t itf, const uint8_t *buffer, uint16_t buffer_size)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rdata_gr += apdu.ne;
|
rdata_gr += apdu.ne;
|
||||||
rdata_bk = *rdata_gr;
|
rdata_bk = *(uint16_t *) rdata_gr;
|
||||||
rdata_gr[0] = 0x61;
|
rdata_gr[0] = 0x61;
|
||||||
if (apdu.rlen - apdu.ne >= 256) {
|
if (apdu.rlen - apdu.ne >= 256) {
|
||||||
rdata_gr[1] = 0;
|
rdata_gr[1] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user