mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-02-07 19:18:23 +00:00
Do not add FMD in FCI.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
2167d28514
commit
f124ee52ce
1 changed files with 2 additions and 2 deletions
|
|
@ -276,7 +276,7 @@ static int cmd_select() {
|
|||
}
|
||||
}
|
||||
if ((p2 & 0xfc) == 0x00 || (p2 & 0xfc) == 0x04) {
|
||||
process_fci(pe);
|
||||
process_fci(pe,0);
|
||||
if (pe == file_sc_hsm) {
|
||||
res_APDU[res_APDU_size++] = 0x85;
|
||||
res_APDU[res_APDU_size++] = 5;
|
||||
|
|
@ -1202,7 +1202,7 @@ static int cmd_keypair_gen() {
|
|||
}
|
||||
}
|
||||
DEBUG_PAYLOAD(meta,meta_size);
|
||||
//ret = meta_add((KEY_PREFIX << 8) | key_id, meta, meta_size);
|
||||
ret = meta_add((KEY_PREFIX << 8) | key_id, meta, meta_size);
|
||||
free(meta);
|
||||
if (ret != 0)
|
||||
return SW_EXEC_ERROR();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue