diff --git a/src/hsm/cmd_list_keys.c b/src/hsm/cmd_list_keys.c index ef92c6f..d3bc6af 100644 --- a/src/hsm/cmd_list_keys.c +++ b/src/hsm/cmd_list_keys.c @@ -60,5 +60,9 @@ int cmd_list_keys() { res_APDU[res_APDU_size++] = f->fid & 0xff; } } + if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64 + res_APDU[res_APDU_size++] = 0; + res_APDU[res_APDU_size++] = 0; + } return SW_OK(); }