Pavol Rusnak
05b8199ef3
Merge pull request #88 from jhoenicke/pinfail
...
Remove PIN failure area
2017-12-14 17:47:45 +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
Jochen Hoenicke
9f2bbb0e1a
Removed references to pin fail area
2017-12-14 17:18:45 +01:00
Jochen Hoenicke
497021f2ef
storage: New pin fail section inside NORCOW
...
Added a function to update NORCOW data.
Changed storage pin fail logic.
2017-12-14 17:18:45 +01:00
Pavol Rusnak
b7444ac13e
modtrezorconfig: fix wipe error
2017-12-14 16:27:18 +01:00
Pavol Rusnak
44196be481
binctl: show fingerprint for BinImage (hash of header - signature)
2017-12-14 14:19:02 +01:00
Pavol Rusnak
2f719526e7
bootloader: implement vendor keys lock
2017-12-13 23:08:15 +01:00
Pavol Rusnak
45c290d24c
trezorhal: introduce vendor_keys_hash, use it in compare_to_current_vendor_header
2017-12-13 22:50:48 +01:00
Pavol Rusnak
70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
2017-12-13 20:47:12 +01:00
Pavol Rusnak
921b59e1d8
blake256: add BLAKE256_BLOCK_LENGTH
2017-12-13 20:11:37 +01:00
Pavol Rusnak
2c63d51580
u2f: avoid using hdnode_private_ckd_cached in order not to constantly invalidate cache
2017-12-13 18:04:22 +01:00
Pavol Rusnak
106642bd44
fix last commit
2017-12-13 17:56:46 +01:00
Jochen Hoenicke
73edc7cb74
Added U2F root key to storage.
...
Fixes #251 .
2017-12-13 17:54:27 +01:00
Jochen Hoenicke
8019bd2730
Storage.proto: Added u2f root key
...
Cache U2F private key to avoid doing computation on seed when u2f is
used. See issue trezor/trezor-mcu#251
2017-12-13 15:09:59 +01:00
Pavol Rusnak
a56d322eca
storage: add homescreen
2017-12-13 02:41:59 +01:00
Pavol Rusnak
b42fc6fb1f
trezorctl: set homescreen for T2
2017-12-13 02:37:59 +01:00
Pavol Rusnak
34322d5fb6
firmware: enable stack protector (except nlr stuff)
2017-12-13 02:06:22 +01:00
Pavol Rusnak
1aba175d7d
build: adapt to new trezor-crypto changes
2017-12-12 22:00:15 +01:00
Jochen Hoenicke
6186822f14
Added tool to flash a sector
...
... and fixed some python3 stuff.
2017-12-12 21:44:30 +01:00
Pavol Rusnak
5688aa245f
vendor: update trezor-crypto
2017-12-12 20:46:20 +01:00
Pavol Rusnak
7b9fcf98ae
drop embed/extmod/modtrezorcrypto/trezor-crypto symlink
2017-12-12 20:31:03 +01:00
Jochen Hoenicke
88563ebaa5
Fix compile problem, fix clearing single byte
2017-12-12 19:36:34 +01:00
Pavol Rusnak
f22c849767
storage: rework storage_commit into storage_update
2017-12-12 16:28:42 +01:00
Pavol Rusnak
70843c9059
storage: introduce storageRam and storageRom
2017-12-12 16:28:42 +01:00
Pavol Rusnak
57bbcc754a
storage: make storage accessible only via functions
...
add calls also for debug build and use them in fsm
2017-12-12 16:28:42 +01:00
Pavol Rusnak
41901a8056
firmware: rework protectChangePin
...
bootloader: wait for flash operation to finish
2017-12-12 12:51:08 +01:00
Pavol Rusnak
36f3b7fe09
firmware: mark usb buffer variables confidential
2017-12-12 12:51:08 +01:00
Jochen Hoenicke
2387f71813
bootloader: Check that erasing flash worked
2017-12-12 12:51:08 +01:00
Jochen Hoenicke
b4a61d60c3
bootloader: Delay flashing firmware magic.
...
Only flash firmware magic at the end. Also simplified the code a bit.
2017-12-12 12:51:08 +01:00
Pavol Rusnak
6deb9fde32
setup: avoid usb host mode
2017-12-12 12:51:08 +01:00
Pavol Rusnak
14d15dab99
fsm: refactor path checking code into path_mismatch function
2017-12-12 01:48:07 +01:00
Jochen Hoenicke
816bfe387f
Bug fix: missing parenthesis in flash_write_word
2017-12-12 00:01:49 +01:00
Pavol Rusnak
20a1326ebb
storage: fix typo
2017-12-11 23:11:43 +01:00
Pavol Rusnak
ce3eaba925
trezorhal: use static inline instead of static (gcc 7.2 workaround)
2017-12-11 22:34:45 +01:00
Pavol Rusnak
d822e1f19e
fix typo
2017-12-10 23:40:47 +01:00
Pavol Rusnak
8c02b50414
add installation info to readme
2017-12-10 23:40:06 +01:00
Saleem Rashid
7cd9945905
fsm: Use coin->curve_name
2017-12-10 20:53:44 +01:00
Saleem Rashid
6e25e0b363
coins: Use curve_info instead of HasherType
2017-12-10 20:53:44 +01:00
Saleem Rashid
268e7de109
Update trezor-crypto
2017-12-10 20:53:44 +01:00
Saleem Rashid
dc781725c6
hasher: Move to trezor-crypto
...
This reverts commit dd7b21a6ca
.
2017-12-10 20:53:44 +01:00
Saleem Rashid
0e60ba54b7
crypto: Use Hasher for message signing
2017-12-10 20:53:44 +01:00
Saleem Rashid
a1e911aa4c
transaction: Do not hardcode HASHER_SHA2
2017-12-10 20:53:44 +01:00
Saleem Rashid
764cc4c6e8
bip32: Add secp256k1-decred
2017-12-10 20:07:13 +01:00
Saleem Rashid
136c62e970
bip32: Add curve to hdnode_deserialize
2017-12-10 20:07:13 +01:00
Saleem Rashid
b41f5407cc
test_check: Attribute test vectors to Monero
2017-12-10 20:07:13 +01:00
Saleem Rashid
8e725f4d3e
test_openssl: Fix SHA2 name conflict
2017-12-10 20:07:13 +01:00
Peter Banik
173c62f0f3
Fixed test suite to use generic hasher functions
2017-12-10 20:07:13 +01:00
Saleem Rashid
6b813bc473
hasher: Add HASHER_BLAKE
2017-12-10 20:07:13 +01:00
Saleem Rashid
7cdbec2d11
blake256: Initial commit
2017-12-10 20:07:13 +01:00
Saleem Rashid
b41a51805f
Use hasher_Raw instead of sha256_Raw
2017-12-10 20:07:13 +01:00