Return reference not found when deleting a key domain.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-02-14 18:51:30 +01:00
parent 3b9c2d159b
commit 43a49d2a14
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -111,6 +111,8 @@ int cmd_key_domain() {
return SW_EXEC_ERROR();
}
low_flash_available();
if (p1 == 0x3)
return SW_REFERENCE_NOT_FOUND();
}
else if (p1 == 0x2) { //XKEK Key Domain creation
if (apdu.nc > 0) {