mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-07 12:43:06 +00:00
Fix when no DKEK is present.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
6956587106
commit
f79fe9f7d0
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ int cmd_key_domain() {
|
|||
}
|
||||
else {
|
||||
file_t *tf = search_dynamic_file(EF_XKEK+p2);
|
||||
if (2*p2 >= tf_kd_size)
|
||||
if (2*p2 >= tf_kd_size || current_dkeks == 0)
|
||||
return SW_INCORRECT_P1P2();
|
||||
if (current_dkeks == 0xff && !tf) //XKEK have always 0xff
|
||||
return SW_REFERENCE_NOT_FOUND();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue