Do not override Ne.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-10-30 23:42:12 +01:00
parent 4313722b06
commit f79a6ed30a

View File

@@ -146,8 +146,8 @@ int cmd_keypair_gen() {
ret = flash_write_data_to_file(fpk, res_APDU, res_APDU_size);
if (ret != 0)
return SW_EXEC_ERROR();
if (apdu.ne == 0)
apdu.ne = res_APDU_size;
//if (apdu.ne == 0)
// apdu.ne = res_APDU_size;
low_flash_available();
return SW_OK();
}