Introduce GET BULK DATA to execute GET DATA in multiple DO with a single APDU.

It saves considerable bandwidth since only one APDU/RAPDU are transmitted.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-02-19 18:30:50 +01:00
parent 1f037da326
commit 0b7beeec8c
3 changed files with 12 additions and 2 deletions

View File

@@ -140,3 +140,10 @@ int cmd_get_next_data() {
select_file(ef);
return cmd_get_data();
}
int cmd_get_bulk_data() {
if (apdu.nc < 3) {
return SW_WRONG_LENGTH();
}
return bulk_cmd(cmd_get_data);
}