mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
Treat missing EDEK as a fault.
This commit is contained in:
parent
f05a2ff9cc
commit
ce90a12b53
@ -680,6 +680,7 @@ static secbool unlock(uint32_t pin)
|
||||
uint16_t len = 0;
|
||||
if (sectrue != initialized || sectrue != norcow_get(EDEK_PVC_KEY, &buffer, &len) || len != RANDOM_SALT_SIZE + KEYS_SIZE + PVC_SIZE) {
|
||||
memzero(&pin, sizeof(pin));
|
||||
handle_fault("no EDEK");
|
||||
return secfalse;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user