Fix returning kcv when pin is not provided. It always return 0x0

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-03-31 19:31:56 +02:00
parent d5378ffa41
commit 853b8f29a2

View File

@@ -607,6 +607,7 @@ static int cmd_import_dkek() {
}
}
memset(res_APDU,0,10);
res_APDU[0] = dkeks;
res_APDU[1] = dkeks-current_dkeks;
dkek_kcv(res_APDU+2);