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

8 Commits

Author SHA1 Message Date
Jochen Hoenicke
c0cd252c83 Store pin as integer
- New module trezor.pin (add timeout here)
- Convert pin to integer by adding a '1' (to detect leading 0s)
- pin is still limited to 9 digits.
2017-12-15 20:37:03 +01:00
Pavol Rusnak
48ef409fdb
modtrezorio: remove mocks 2017-12-15 00:06:09 +01:00
Jochen Hoenicke
87f7054e46 Added callback for PIN timeout
When PIN is entered or changed and their were failed tries the function
waits for time (exponential slow down).  For every second it waits, it
now calls back into python to give it the chance to show a message.

GUI still needs to be implemented
2017-12-14 17:19:51 +01:00
Pavol Rusnak
b7444ac13e
modtrezorconfig: fix wipe error 2017-12-14 16:27:18 +01:00
Pavol Rusnak
6ab0f03ec4
embed: norcow_init, storage_init and flash_init don't return secbool, they halt using ensure if something goes wrong 2017-12-09 14:48:49 +01:00
Jan Pochyla
0376ff7f48 storage, norcow: use secbool 2017-11-05 20:46:59 +01:00
Jan Pochyla
418f035811 storage: add has_pin and change_pin
TODO: finish change_pin
2017-11-05 20:46:59 +01:00
Jan Pochyla
f07b4dda0b modtrezorconfig: extract pin & unlocking to storage.c 2017-11-05 20:46:11 +01:00