1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 22:18:13 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
Pavol Rusnak
38e92407c7
show progress in derive_kek 2019-02-18 19:21:09 +01:00
Andrew Kozlik
94cb1a4dbe Before checking the PIN sleep for 2^ctr - 1 seconds instead of 2^(ctr-1) seconds. 2019-02-14 16:52:35 +01:00
Andrew Kozlik
13b256ab2c Shorten error messages to better display on Trezor 1 screen. 2019-02-12 13:43:42 +01:00
Andrew Kozlik
ce90a12b53 Treat missing EDEK as a fault. 2019-02-12 13:31:19 +01:00
Andrew Kozlik
f05a2ff9cc Fix aliasing issue in storage_set_counter(). 2019-02-11 17:46:46 +01:00
andrew
5c2765740d Add efficient counter implementation. 2019-02-08 20:24:55 +01:00
andrew
18fa999974 Support entries which are writable even when the storage is locked. Needed for U2F counter on Trezor 1. 2019-02-08 17:50:27 +01:00
andrew
0497802014 Display more information when handle_fault() is invoked to help diagnose bugs. We might want to remove this in the next release. 2019-02-07 14:03:25 +01:00
andrew
4429888b93 Use error_shutdown() to display 'Too many wrong PIN attempts. Storage has been wiped.' 2019-02-06 17:42:10 +01:00
andrew
2862d679ac Do not require storage to be unlocked prior to calling storage_change_pin(). The function checks the old PIN anyway. 2019-02-06 13:47:09 +01:00
andrew
47cd563c81 Interrupt the PIN wait dialog if the PIN_UI_WAIT_CALLBACK function returns sectrue. 2019-02-06 13:43:15 +01:00
andrew
6d9a4962a4 Check the 'initialized' flag in storage_*() functions before doing anything. 2019-02-04 17:32:58 +01:00
andrew
8fc03a5a95 Fix bug in auth_get() when storing the authentication_sum. Remove the superfluous auth_get() call in unlock(). 2019-02-01 20:46:16 +01:00
andrew
840f7461ee Add storage_is_unlocked(). 2019-01-30 17:36:02 +01:00
andrew
ebe884ab4d Make storage_pin_fails_increase() public. 2019-01-30 17:33:48 +01:00
andrew
7e8c4e783d Revert "Add storage_wipe_ex() which allows to specify the new PIN and the PIN fail count."
This reverts commit d49e3c9f3c.
2019-01-30 17:31:51 +01:00
andrew
7228b299b3 Add storage_lock(). 2019-01-30 16:34:57 +01:00
andrew
d49e3c9f3c Add storage_wipe_ex() which allows to specify the new PIN and the PIN fail count. 2019-01-30 16:22:50 +01:00
andrew
7be7709c70 Fix strict-prototypes warnings by explicitly specifying void when a function accepts no arguments. 2019-01-25 16:23:20 +01:00
Pavol Rusnak
781f1c24d0
init 2019-01-24 15:53:45 +01:00