1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00
Commit Graph

31 Commits

Author SHA1 Message Date
Andrew Kozlik
5b49878cdb Check that the input to storage_set_encrypted() doesn't exceed the maximum length of 65507. 2019-02-20 18:27:19 +01:00
Pavol Rusnak
d715873ee6
callback: change ratio to 80% waiting, 20% deriving KEK 2019-02-19 15:31:07 +01:00
Pavol Rusnak
d7e7d8ef27
show ui_callback always (before and after) 2019-02-18 19:29:25 +01:00
Pavol Rusnak
38e92407c7
show progress in derive_kek 2019-02-18 19:21:09 +01:00
Pavol Rusnak
5688a9e47e
gitignore: add *.d 2019-02-15 14:11:29 +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
2888c11095 Bugfix: Unlock flash when copying sector header. 2019-01-31 17:52:51 +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
fc29df6f87 Rename flash_erase_sector() to flash_erase() to resolve name collision with libopencm3 in trezor-mcu. 2019-01-28 16:24:48 +01:00
andrew
65fdd53427 Rename flash_unlock() to flash_unlock_write() to resolve name collision with libopencm3 in trezor-mcu. 2019-01-28 16:02:09 +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
Tomas Susanka
a73e147ceb readme: remove future tense; and key derivation image; other small typos 2019-01-25 15:11:33 +01:00
Tomas Susanka
f24c6e31f6 readme: import from google docs 2019-01-25 15:08:40 +01:00
Pavol Rusnak
8970e2bdeb
add .gitignore 2019-01-24 16:01:47 +01:00
Pavol Rusnak
638a933e22
add COPYING 2019-01-24 15:57:18 +01:00
Pavol Rusnak
781f1c24d0
init 2019-01-24 15:53:45 +01:00