mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-07 12:43:06 +00:00
Add PHY OPTS.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
07079b6ba1
commit
54cdbfc22c
2 changed files with 7 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit a5f19a135673d5bd4edb9f10cea65758a3e7e7d5
|
||||
Subproject commit d4582508879bb7d6022bcf0dd03f823e29c5db30
|
||||
|
|
@ -227,6 +227,12 @@ int cmd_extras() {
|
|||
}
|
||||
tmp[P2(apdu)] = apdu.data[0];
|
||||
}
|
||||
else if (P2(apdu) == PHY_OPTS) {
|
||||
if (apdu.nc != 2) {
|
||||
return SW_WRONG_LENGTH();
|
||||
}
|
||||
memcpy(tmp + PHY_OPTS, apdu.data, 2);
|
||||
}
|
||||
else {
|
||||
return SW_INCORRECT_P1P2();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue