Jochen Hoenicke
e093371129
Added storage area for u2f counter.
...
To prevent flashing for every u2f operation just clear one bit in
the u2f area to indicate an increased counter.
2016-05-26 20:59:16 +02:00
Jochen Hoenicke
8e7896456a
Merge branch 'origin/master' into u2f
2016-05-26 20:58:52 +02:00
Jochen Hoenicke
87bfd5a829
Bugfix: restore storage.
...
Storage restore was broken due to my previous patch.
2016-05-25 01:14:32 +02:00
Jochen Hoenicke
bc92fb95a5
Clear pinarea on storage_init if upgrade fails
...
This also cleans up the code a bit and resets storage_uuid if upgrade fails.
2016-05-20 20:13:43 +02:00
Pavol Rusnak
46119bd007
clear pin failures on wipe and when in debug mode
2016-05-20 17:00:10 +02:00
Jochen Hoenicke
96f30a0ba7
Don't ask for passphrase with u2f.
2016-05-20 01:49:20 +02:00
Pavol Rusnak
c123db71b9
Merge branch 'master' into u2f
2016-05-16 18:19:31 +02:00
Pavol Rusnak
def4a9a02c
fix pbkdf2 usage in storage.c
2016-05-12 21:05:17 +02:00
Jochen Hoenicke
cf38291ca4
Updated branch u2f
2016-04-29 16:19:54 +02:00
Jochen Hoenicke
630e26dd20
use less stack memory in storage_commit
2016-04-27 19:23:02 +02:00
Jochen Hoenicke
da98a3a6fd
Don't reflash storage after each PIN entry
...
Instead of reflashing the whole storage, we use a designated area
in the second storage block, where we mark each PIN failure by a
single zero bit. This is because one can set bits in flash to zero but
not to one. If the PIN was entered successfully the whole word is
set to zero and the next word stores the new PIN failure counter.
2016-04-27 18:39:04 +02:00
Jochen Hoenicke
51f02ff763
ed25519 support
2016-04-22 18:22:45 +02:00
Jochen Hoenicke
03c501d9e3
Do not use hardcoded string for secp256k1.
2016-04-20 15:39:15 +02:00
Jochen Hoenicke
56238e63fc
Added curve type to HD node.
...
Create a different root node for every curve type to separate the key
space.
2016-04-19 18:23:12 +02:00
Pavol Rusnak
1d3c7ee3f2
cleanup Waking up screen usage
2016-01-19 15:36:43 +01:00
Pavol Rusnak
ed76d030ef
check for sessionPassphraseCached
2015-12-14 22:53:14 +01:00
Mark Bryars
9328cad7f1
Add U2F support
2015-11-03 16:47:12 +01:00
Roman Zeyde
c08ff09f0f
storage: add compile-time assert for sizeof(Storage) validation
2015-09-06 21:14:23 +03:00
Darin Stanchfield
e99aafd949
fixed salt passing to pbkdf2_hmac_sha512
2015-05-05 12:01:34 -07:00
Pavol Rusnak
00ccf6a8ce
bump storage version
2015-04-01 19:43:36 +02:00
Pavol Rusnak
4cbf29505d
don't clear PIN on Initialize
2015-03-31 16:31:29 +02:00
Pavol Rusnak
40e174ac87
bump storage version
2015-03-18 13:34:09 +01:00
Jochen Hoenicke
286ee0525c
PIN handling - constant time.
...
This diff contains three changes.
1. Make timing isPinCorrect independent of storage.pin, to avoid timing attacks
2. Only update failed PIN counter if the user entered a PIN.
Of course, the fail counter is still incremented, before the PIN is checked.
3. Don't cache the PIN, but just the fact that the PIN was entered. The
cache should be in sync with storage.pin in any case.
2015-02-22 15:42:31 +01:00
Pavol Rusnak
f2f50aa188
bump version to 1.3.1
2015-02-16 15:23:30 +01:00
Pavol Rusnak
b5221ce2e9
introduce homescreen
2015-02-04 21:27:07 +01:00
Pavol Rusnak
40efefc571
rework pin handling
2015-01-27 13:00:25 +01:00
Pavol Rusnak
7dacfd69ee
check for flash operation failure
2015-01-26 21:10:51 +01:00
Pavol Rusnak
2a2eba7de5
rework layoutProgress functions
2014-12-21 18:58:56 +01:00
Pavol Rusnak
0e92d4c588
error checking of hdnode functions return values
2014-12-16 18:28:46 +01:00
Pavol Rusnak
961566c9b7
implement ApplySetttings.use_passphrase
2014-12-13 19:29:27 +01:00
Pavol Rusnak
c051dfde9d
update trezor-crypto
2014-10-30 01:38:40 +01:00
Pavol Rusnak
e5bdf1943a
align encryption of hdnode with mnemonic logic
2014-08-07 20:56:56 +02:00
Pavol Rusnak
524f2a957a
enable stack protector
2014-07-31 19:44:03 +02:00
Pavol Rusnak
ea42f6af4e
adapt to new opencm3 include structure
2014-06-19 00:12:31 +02:00
Pavol Rusnak
441bb3b513
implement ClearSession
2014-06-17 16:03:07 +02:00
Pavol Rusnak
67ad043209
adapt to new aes api
2014-06-09 19:00:07 +02:00
Pavol Rusnak
2066f9e95c
use imported flag to indicate that storage was imported from an external source
2014-05-26 00:58:17 +02:00
Pavol Rusnak
0d0a1ab5f2
import v1.0.0
2014-04-29 14:38:32 +02:00