1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-15 12:29:13 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Andrew Kozlik
c58c265d9c config: Check mnemonic by comparing hashes instead of the actual mnemonics, to mitigate side-channel attacks. 2019-02-18 18:45:26 +01:00
Andrew Kozlik
5230a0f846
config: Do not lock storage after completing loadDevice(). 2019-02-15 15:13:07 +01:00
Andrew Kozlik
55bc3c7430
config: Check metadata magic before upgrading storage from version 10. Bump config version. 2019-02-15 15:13:07 +01:00
Andrew Kozlik
0b79d0e596
config: Store cleartext PIN for DEBUG_LINK. 2019-02-15 15:13:07 +01:00
Andrew Kozlik
6b66c7540c
config: Remove unused functions config_hasMnemonic() and config_hasNode(). Since mnemonic and node are protected entries, these functions would always return false when storage is locked. We now instead use the INITIALIZED flag which is public. 2019-02-15 15:13:07 +01:00
Andrew Kozlik
45193ffc1d
config: Use secbool instead of bool at least internally. 2019-02-15 15:13:06 +01:00
Andrew Kozlik
dc848be167
config: Cache auto-lock delay. 2019-02-15 15:13:06 +01:00
andrew
2f9010824d
config: Erase HW_ENTROPY_DATA when no longer needed. 2019-02-15 15:13:06 +01:00
andrew
faa0664b62
config: Use efficient implementation of U2F counter from trezor-storage. 2019-02-15 15:13:06 +01:00
andrew
ae48b528a9
config: Rename session_isPinCached() to session_isUnlocked(). Change GetFeatures to always return pin_cached=false if PIN is not set, in order to maintain the same behavior as before. 2019-02-15 15:13:05 +01:00
andrew
66ffa4c7dc
config: Add hardware entropy to storage_init(). 2019-02-15 15:13:05 +01:00
andrew
7b0f5e031d
config: Change config_get*() functions to return status of the get operation. 2019-02-15 15:13:05 +01:00
andrew
03e9ea4f5c
Support interruption of the PIN wait dialog by Cancel and Initialize messages. 2019-02-15 15:13:05 +01:00
andrew
e49e84ea5a
Reorder storage keys in config.c to correspond with trezor-core and add KEY_INITIALIZED. Add CHECK_PIN to fsm_msgApplyFlags() and to other fsm_msg functions in order to unlock storage. Improve error handling in reset.c and recovery.c. 2019-02-15 15:13:05 +01:00
andrew
247337c63d
Do not lock after wipe. Fix protectPinUiCallback() to correctly display '0 seconds' when wait is 0. 2019-02-15 15:13:05 +01:00
andrew
a7fcf9b036
Fix key constant in config_setLanguage(). Update trezor-storage. 2019-02-15 15:13:04 +01:00
andrew
681137c2ef
Unlock for testing. 2019-02-15 15:13:04 +01:00
andrew
4f32cb5083
firmware: integrate trezor-storage 2019-02-15 15:12:53 +01:00