mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-19 21:18:14 +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;
|
uint16_t len = 0;
|
||||||
if (sectrue != initialized || sectrue != norcow_get(EDEK_PVC_KEY, &buffer, &len) || len != RANDOM_SALT_SIZE + KEYS_SIZE + PVC_SIZE) {
|
if (sectrue != initialized || sectrue != norcow_get(EDEK_PVC_KEY, &buffer, &len) || len != RANDOM_SALT_SIZE + KEYS_SIZE + PVC_SIZE) {
|
||||||
memzero(&pin, sizeof(pin));
|
memzero(&pin, sizeof(pin));
|
||||||
|
handle_fault("no EDEK");
|
||||||
return secfalse;
|
return secfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user