mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-21 07:38:29 +00:00
Credentials are not necessary when importing DKEK.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
f2874ae3ef
commit
202c8a4b22
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ int cmd_key_domain() {
|
|||
//if (dkeks == 0)
|
||||
// return SW_COMMAND_NOT_ALLOWED();
|
||||
uint8_t p1 = P1(apdu), p2 = P2(apdu);
|
||||
if ((has_session_pin == false || isUserAuthenticated == false) && apdu.nc > 0)
|
||||
if ((has_session_pin == false || isUserAuthenticated == false) && apdu.nc > 0 && !(p1 == 0x0 && p2 == 0x0))
|
||||
return SW_CONDITIONS_NOT_SATISFIED();
|
||||
if (p2 >= MAX_KEY_DOMAINS)
|
||||
return SW_WRONG_P1P2();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue