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

7899 Commits

Author SHA1 Message Date
Mark Bryars
32f8819997 Generate hardened keys in a unique root 2015-11-05 01:24:37 +01:00
Pavol Rusnak
ff21971a78
Merge branch 'master' of github.com:darkskiez/trezor-mcu into u2f 2015-11-04 18:49:16 +01:00
Pavol Rusnak
d43f9a8a99
Merge branch 'master' of github.com:trezor/trezor-mcu 2015-11-04 18:47:08 +01:00
Pavol Rusnak
e1095e3ad4
update trezor-common 2015-11-04 18:46:21 +01:00
Mark Bryars
9328cad7f1 Add U2F support 2015-11-03 16:47:12 +01:00
Pavol Rusnak
72268e816b Merge pull request #8 from darkskiez/master
Add u2f counter to storage
2015-11-03 13:18:44 +01:00
Mark Bryars
a272580741 Add u2f counter to storage 2015-11-03 00:04:48 +01:00
Pavol Rusnak
ca45019918
add slip-13 paths to the test 2015-10-20 18:12:39 +02:00
Pavol Rusnak
3b167f7bc3
0.6.7 2015-10-19 19:50:59 +02:00
Pavol Rusnak
8b0610c16a
add skip checksum option to load device 2015-10-19 19:48:14 +02:00
Chris Rico
6475f98b1e
Allow firmware update by version or latest from releases.json 2015-10-19 15:38:39 +02:00
Pavol Rusnak
6726547a88 Merge pull request #50 from 251io/trezor-crypto-bugfix
Fixes a bug in the test_pbkdf2_hmac_sha256 test.
2015-09-22 00:10:28 +02:00
251
1d7fb4e38f Fixes a bug in the test_pbkdf2_hmac_sha256 test.
This bug fix sets the length of the derived key in the last test_pbkdf2_hmac_sha256 test to 40 bytes to fix a buffer overflow, which is caused by the call to the pbkdf2_hmac_sha256 function, on the memory reserved by the local variable k.
2015-09-21 23:51:10 +02:00
Pavol Rusnak
7da678c446 add .gitignore 2015-09-08 12:08:27 +02:00
Pavol Rusnak
d461a15b01 update Dockerfile to F22 2015-09-07 22:35:02 +02:00
Pavol Rusnak
7cd63ac53d Merge pull request #44 from romanz/master
storage: add compile-time assert for sizeof(Storage) validation
2015-09-06 23:36:38 +02:00
Roman Zeyde
c08ff09f0f storage: add compile-time assert for sizeof(Storage) validation 2015-09-06 21:14:23 +03:00
Pavol Rusnak
57cee67855 Merge pull request #49 from romanz/master
bignum: constant time implementation for bn_mod()
2015-08-31 20:27:29 +02:00
Roman Zeyde
12c3b1ccf6 bignum: add specific tests for bn_mod() edge cases 2015-08-31 21:18:16 +03:00
Roman Zeyde
437f8b3856 bignum: constant time implementation for bn_mod() 2015-08-31 20:55:02 +03:00
Pavol Rusnak
8372504238 show home screen on Initialize 2015-08-25 19:50:31 +02:00
Pavol Rusnak
b4b5426e33 Merge pull request #42 from romanz/debug_exclude
firmware: exclude debug functionality from release build
2015-08-24 15:34:11 +02:00
Roman Zeyde
755b0388f0 firmware: exclude debug functionality from release build 2015-08-24 15:51:20 +03:00
Pavol Rusnak
e9e51b1377 Merge pull request #41 from romanz/fsm_assert
fsm: add compile-time assert for response size validation
2015-08-24 14:03:28 +02:00
Roman Zeyde
1bb00adc37 fsm: add compile-time assert for response size validation
ttps://gcc.gnu.org/gcc-4.6/changes.html
2015-08-24 13:55:44 +03:00
Pavol Rusnak
a20f976721 0.6.6 2015-08-21 20:30:46 +02:00
Pavol Rusnak
ef00dfa403 update protobuf 2015-08-21 20:30:31 +02:00
Pavol Rusnak
8b1f8a4595 show "Web sign in to" when HTTPS is detected 2015-08-21 17:04:38 +02:00
Pavol Rusnak
b2bc509218 added description for pin entering 2015-08-21 15:16:27 +02:00
Pavol Rusnak
e67018178b Merge pull request #48 from jhoenicke/bignumcleanup
Added more tests for specific points.
2015-08-19 21:52:33 +02:00
Jochen Hoenicke
472b90d8ed Added myself to copyright lines. 2015-08-19 21:45:21 +02:00
Jochen Hoenicke
50428bb37b Added more tests for specific points.
Some points designed to test for underflow of x^3-ax.
2015-08-19 21:26:05 +02:00
Pavol Rusnak
74eed547a3 Merge pull request #46 from jhoenicke/bignumcleanup
Fixed more unit tests.  Simplified jacobian_add
2015-08-08 01:56:27 +02:00
Jochen Hoenicke
774ac9cb22 Simplified test for doubling in point_jacobian_add 2015-08-07 11:26:00 +02:00
Jochen Hoenicke
11d14a3946 Fixed unit test for addmod added test for add.
- bn_addmod: now only guarantees result < 2*prime.
- bn_add: new test
- bn_mult_half: fixed normalization of prime -> 0.
2015-08-07 11:15:10 +02:00
Pavol Rusnak
c0a03d1429 Merge pull request #45 from jhoenicke/bignumcleanup
Extended comments, new function bn_add, a bug fix.
2015-08-06 19:50:36 +02:00
Jochen Hoenicke
f93b003cbc Extended comments, new function bn_add, a bug fix.
Describe normalized, partly reduced and reduced numbers.
Comment which function expects which kind of input.
Removed unused bn_bitlen.
Add bn_add that does not reduce.
Bug fix in ecdsa_validate_pubkey: bn_mod before bn_is_equal.
Bug fix in hdnode_private_ckd: bn_mod after bn_addmod.
2015-08-06 19:09:23 +02:00
Pavol Rusnak
57166295c4 Merge pull request #44 from jhoenicke/bignumcleanup
My bignum cleanup branch
2015-08-06 00:31:29 +02:00
Jochen Hoenicke
53fa580b81 Added more unit tests
- Added Romanz's validate_pubkey test.
- Added special test to check that jacobin_point_add can double.
2015-08-05 22:29:34 +02:00
Jochen Hoenicke
a1408fc5a0 Fix unit test for point_jacobian_add 2015-08-05 22:26:50 +02:00
Roman Zeyde
a9b98a3671 test_curves: generalize UT for bignum cleanup 2015-08-05 21:51:39 +02:00
Jochen Hoenicke
e1347fcdf8 New Unit Tests
- Added unit tests for the NIST curve.
- Fix some missing bn_mod in unit tests.
- New tests for tricky 2 (2j+1) 2^{4i} exponents.
2015-08-05 21:42:40 +02:00
Jochen Hoenicke
f2081d88d8 New jacobian_add that handles doubling.
Fix bug where jacobian_add is called with two identical points.
2015-08-05 21:23:04 +02:00
Jochen Hoenicke
60e36dac3b Fixed conditional_negate for larger numbers
Without the bn_mod the numbers get larger (but still < 2*prime), so
conditional_negate should handle this.
2015-08-05 19:36:30 +02:00
Jochen Hoenicke
6ba4d288b0 Cleaned up bignum code
1. Fixed bn_multiply_step to handle small primes.
2. Removed many calls to bn_mod to prevent side-channel leakage.
2015-08-05 19:36:30 +02:00
Pavol Rusnak
2e09a9ff35 add b to ecdsa_curve structure 2015-08-05 18:06:10 +02:00
Pavol Rusnak
f6820ad5f6 gcc-arm-none-eabi is not available in travis yet, install manually 2015-08-05 17:24:16 +02:00
Pavol Rusnak
90171e0aa6 update bootloader and demo to new usb api 2015-08-05 16:57:23 +02:00
Pavol Rusnak
ec98e58bce simplify Dockerfile, add travis CI 2015-08-05 16:42:21 +02:00
Pavol Rusnak
418e86c293 remove scons dependency, build shared library with Makefile 2015-08-05 16:16:24 +02:00