1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

config: Erase HW_ENTROPY_DATA when no longer needed.

This commit is contained in:
andrew 2019-02-11 12:51:51 +01:00 committed by Pavol Rusnak
parent faa0664b62
commit 2f9010824d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -345,6 +345,7 @@ void config_init(void)
config_upgrade_v10();
storage_init(&protectPinUiCallback, HW_ENTROPY_DATA, HW_ENTROPY_LEN);
memzero(HW_ENTROPY_DATA, sizeof(HW_ENTROPY_DATA));
uint16_t len = 0;
if (sectrue == storage_get(KEY_UUID, config_uuid, sizeof(config_uuid), &len) && len == sizeof(config_uuid)) {