mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-07 12:43:06 +00:00
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:
parent
d5378ffa41
commit
853b8f29a2
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue