1
0
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:
Andrew Kozlik 2019-02-12 13:31:19 +01:00
parent f05a2ff9cc
commit ce90a12b53

View File

@ -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;
}