1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00
Commit Graph

7899 Commits

Author SHA1 Message Date
Pavol Rusnak
94531f264e speed up public ckd (used in multisig) 2015-02-15 20:47:53 +01:00
Pavol Rusnak
07c8c4963a use const char * const * for wordlist 2015-02-14 12:40:32 +01:00
Pavol Rusnak
d814f58a3b Merge pull request #22 from jhoenicke/master
Make word list const
2015-02-14 12:38:36 +01:00
Pavol Rusnak
c369683dc9 Merge pull request #14 from jhoenicke/master
Disable assertion checking
2015-02-14 12:38:15 +01:00
Jochen Hoenicke
7e7b40b434 Make word list const
This makes the pointers to the words constant.  It moves 8kb from ram
to flash.  It changes the return type of mnemonic_wordlist() to reflect
this change.  Everyone calling it should also change the type to
`const char * const *`.
2015-02-14 12:00:44 +01:00
Jochen Hoenicke
2a28680d6e Disable assertion checking
The trezor-crypto has some assertions, which are enabled unless
compiled with -DNDEBUG.  This does not make much sense for the Trezor
as could not write the assertion errors to stderr anyway.

This simple patch removes the dependency to assert, printf, etc. It
saves about 11kb flash and 2.2kb ram.
2015-02-14 11:50:12 +01:00
Pavol Rusnak
873c0ec11a one more edit of 'c' letter in font 2015-02-13 20:59:47 +01:00
Pavol Rusnak
60bb2fe2b1 use Knuth shuffles 2015-02-13 20:51:02 +01:00
Pavol Rusnak
093ba4fd19 check gpg key in Dockerfile 2015-02-13 18:26:32 +01:00
Pavol Rusnak
062a09e646 make lowercase char 'c' nicer 2015-02-13 18:12:27 +01:00
Pavol Rusnak
7d3196a057 correctly skip utf-8 characters 2015-02-13 17:42:23 +01:00
Pavol Rusnak
7fd1e894f5 refactor font handling 2015-02-13 15:37:23 +01:00
Pavol Rusnak
ac8d951027 fix usage of font special characters 2015-02-13 14:35:21 +01:00
Pavol Rusnak
62aff7a22a adapt tests to reflect reorder change 2015-02-11 19:02:35 +01:00
Pavol Rusnak
03faa85cc4 integrate signing reorder patch by Jochen 2015-02-11 17:38:32 +01:00
Pavol Rusnak
f4fe7c9aa5 Merge pull request #21 from jhoenicke/master
Fix RFC6979 generation of k.
2015-02-11 16:42:32 +01:00
Pavol Rusnak
ed3fbf901c passphrase protection -> encryption (in dialog) 2015-02-05 18:59:43 +01:00
Pavol Rusnak
c77dd236e7 add homescreen call to cmdtr.py 2015-02-05 15:05:24 +01:00
Pavol Rusnak
11e7f21ac3 nicer image in homescreen test 2015-02-05 14:43:27 +01:00
Pavol Rusnak
847b15dae8 revert udev rule change 2015-02-05 14:05:56 +01:00
Pavol Rusnak
b5221ce2e9 introduce homescreen 2015-02-04 21:27:07 +01:00
Pavol Rusnak
e42cfe365f use better image for test 2015-02-04 21:26:17 +01:00
Pavol Rusnak
686b8cc4b8 update protobuf, introduce homescreen 2015-02-04 20:53:22 +01:00
Pavol Rusnak
201b66a559 introduce home screen 2015-02-04 20:17:10 +01:00
Pavol Rusnak
d35b741f08 enable OP_RETURN 2015-02-04 20:04:59 +01:00
Pavol Rusnak
d83926fb13 add failing test to test_op_return 2015-02-04 20:00:04 +01:00
Pavol Rusnak
85d8fa90c8 update protobuf, enable OP_RETURN 2015-02-04 15:47:44 +01:00
Pavol Rusnak
f5d880c96c enable OP_RETURN output 2015-02-04 15:42:46 +01:00
Pavol Rusnak
fbcd1af05d add info about obsolete udev 2015-02-02 11:05:16 +01:00
Pavol Rusnak
657a008e0c python-trezor is LGPLv3 2015-01-30 23:55:29 +01:00
Jochen Hoenicke
ed9d8c1ebb Fix RFC6979 generation of k.
The standard says:
step h:
  Set T to the empty sequence.
  while tlen < qlen
    V = HMAC_K(V)
    T = T || V
  k = bits2int(T)

in this case (HMAC-SHA256, qlen=256bit) this simplifies to
  V = HMAC_K(V)
  T = V
  k = bits2int(T)
and T can be omitted.

The old code (wrong) did:
  T = HMAC_K(V)
  k = bits2int(T)
Note that V will only be used again if the first k is out of range.
Thus, the old code produced the right result with a very high probability.
2015-01-30 22:34:37 +01:00
slush0
2533a52df5 version 0.6.0 2015-01-30 18:50:50 +01:00
Pavol Rusnak
54aa5a4482 Merge pull request #20 from mackler/stddef-rand
Add `stdlib.h` to header.  Needed for `size_t`.
2015-01-28 09:47:21 +01:00
slush0
bb4d21ba65 Added feature check 2015-01-28 05:31:30 +01:00
Adam Mackler
82ea549661 Add stdlib.h to header. Needed for size_t. 2015-01-27 21:44:48 -05:00
Adam Mackler
cb6f976b0d Remove unused static variable sha384_initial_hash_value. 2015-01-27 19:22:42 -05:00
Pavol Rusnak
83e8655ece Merge pull request #23 from runn1ng/patch-1
Update README.rst
2015-01-27 17:46:19 +01:00
Karel Bílek
7f4f15fb32 Update README.rst 2015-01-27 17:41:06 +01:00
Pavol Rusnak
40efefc571 rework pin handling 2015-01-27 13:00:25 +01:00
Pavol Rusnak
012d38a9a0 increasePinFails before asking PIN 2015-01-26 21:41:43 +01:00
Pavol Rusnak
7dacfd69ee check for flash operation failure 2015-01-26 21:10:51 +01:00
Pavol Rusnak
5f8a4f6da1 use hdnode_private_ckd_cached where appropriate 2015-01-26 20:24:07 +01:00
Pavol Rusnak
1daf603135 increase range for bip32 caching test 2015-01-26 19:24:31 +01:00
Pavol Rusnak
aa1833ba3f add stdlib to header 2015-01-26 19:12:22 +01:00
Pavol Rusnak
f4e6010e18 implement BIP32 cache 2015-01-26 19:10:19 +01:00
Pavol Rusnak
31385f71f4 update nanopb to 0.2.9.2 2015-01-26 14:02:14 +01:00
Pavol Rusnak
32158bbb5c refactor fsm_getRootNode into fsm_getDerivedNode 2015-01-26 13:53:06 +01:00
slush0
018a347aca Added test of DerivationCache 2015-01-26 13:08:29 +01:00
Pavol Rusnak
8f48ffe63c extract fsm_getCoin 2015-01-26 12:51:56 +01:00
Pavol Rusnak
40b023b1f4 Merge pull request #17 from dllaurence/embedded_header
Remove now-redundant embedded header
2015-01-26 00:29:30 +01:00