1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 11:28:21 +00:00
Commit Graph

533 Commits

Author SHA1 Message Date
Pavol Rusnak
1034b28f90 use both private and public bip32 versions 2014-02-19 16:58:48 +01:00
slush0
e17e0590f5 Merge pull request #5 from jpochyla/master
Add CMake file with c++ compilation on MSVC
2014-02-17 18:50:49 +01:00
Jan Pochyla
166e19ba7c add cmake file with c++ compilation on MSVC 2014-02-17 18:49:01 +01:00
Pavol Rusnak
93e7f5ca8b Merge pull request #4 from jpochyla/master
MSVC compatibility fixes
2014-02-15 16:19:23 +01:00
Jan Pochyla
2e22e731d6 remove field name struct init for MSVC compatibility 2014-02-15 15:57:43 +01:00
Jan Pochyla
67eb76fd1b llu -> ull for MSVC compatibility 2014-02-15 15:57:41 +01:00
Pavol Rusnak
50fb43127f use -Wextra 2014-02-08 19:12:07 +01:00
Pavol Rusnak
d433bcfa10 fix ecdsa_sig_to_der 2014-02-08 15:55:03 +01:00
Pavol Rusnak
6a856479a8 introduce point_multiply 2014-02-05 23:38:37 +01:00
Pavol Rusnak
fc144587e6 introduce ecdsa_verify_digest 2014-02-04 19:12:43 +01:00
Pavol Rusnak
8aaebe761b introduce uncompress_coords 2014-02-04 18:55:17 +01:00
Pavol Rusnak
81f462a5c5 add ecdsa_sig_to_der 2014-02-02 22:01:43 +01:00
Pavol Rusnak
73489fbd33 split signing into ecdsa_sign_digest and ecdsa_sign/ecdsa_sign_double 2014-02-02 20:36:03 +01:00
Pavol Rusnak
a40a077613 rework ecdsa_address_to_hash160 into ecdsa_address_decode 2014-01-31 15:26:51 +01:00
Pavol Rusnak
2e4ec7fe0a introduce ecdsa_address_to_hash160 2014-01-30 20:34:05 +01:00
Pavol Rusnak
7dc057c903 add testcases for address generation
fix bug for version != 0
process uncompressed pubkeys as well
2014-01-27 19:57:44 +01:00
Pavol Rusnak
c0ee25c851 don't use implicit versions in bip32 2014-01-21 18:38:44 +01:00
Pavol Rusnak
8764a03453 compute fingerprints 2014-01-14 15:29:46 +01:00
Pavol Rusnak
ed7e2e5058 implement public child key derivation 2014-01-14 14:35:13 +01:00
Pavol Rusnak
e681e2b7ae bip39: pbkdf2 rounds 4096 -> 2048 2014-01-10 20:22:33 +01:00
Pavol Rusnak
8423c7abfd add check that pub.y != res.y 2014-01-04 17:39:37 +01:00
Pavol Rusnak
3589cf5cbf use 4096 pbkdf2 rounds for bip39 2013-12-10 16:24:51 +01:00
Pavol Rusnak
97067c918e extract some pbkdf2 constants into macros 2013-12-09 18:16:33 +01:00
Pavol Rusnak
352bc42be2 use PBKDF2 for BIP39, add unit tests 2013-12-09 16:25:03 +01:00
Pavol Rusnak
353606e2df add hdnode_coin_version to be able to set coin version from outside 2013-11-28 02:47:00 +01:00
Pavol Rusnak
02adc15ec9 use fixed param size for mnemonic function 2013-11-28 00:53:09 +01:00
Pavol Rusnak
6b66f29c3b use fixed block size (128-bit) for AES again 2013-11-28 00:52:39 +01:00
Pavol Rusnak
e04ec2a831 add check to mnemonic_from_data as well 2013-11-26 01:29:06 +01:00
Pavol Rusnak
6939275362 use TREZOR as passphrase to check protection 2013-11-25 23:06:02 +01:00
Pavol Rusnak
1c9046b66d reworked bip39 including tests 2013-11-25 22:46:54 +01:00
Pavol Rusnak
150c770e4e xprvnode -> hdnode, add hdnode_from_pub function 2013-11-25 15:37:49 +01:00
Pavol Rusnak
9da3b35962 extract xprv_fill_public method 2013-11-08 16:02:48 +01:00
Pavol Rusnak
b14ce58df7 rename xprv struct to XprvNode 2013-11-08 12:44:11 +01:00
Pavol Rusnak
42da580ce8 bip39 implementation with unit tests 2013-11-08 02:02:16 +01:00
Pavol Rusnak
a439d8674d small cosmetic changes 2013-10-24 19:44:54 +02:00
Pavol Rusnak
9308fddb7f replace blowfish with rijndael 2013-10-10 14:58:59 +02:00
Pavol Rusnak
69a88a28a8 simplify rfc6979 tests 2013-10-08 22:59:36 +02:00
Pavol Rusnak
0fc4ad0976 move declaration 2013-10-08 21:07:53 +02:00
Pavol Rusnak
52485b9008 define BN_PRINT if not defined 2013-10-08 18:54:21 +02:00
Pavol Rusnak
946c23e2cf small readme update 2013-10-08 17:27:07 +02:00
Pavol Rusnak
99565b3130 fix blowfish. add unit tests for blowfish 2013-10-08 16:59:14 +02:00
Pavol Rusnak
47cb0fefce renamed to trezor-crypto, modified readme 2013-10-08 14:18:35 +02:00
Pavol Rusnak
9205c0d952 use canonical signatures (if S > Order/2: S = Order - S) 2013-10-08 14:06:48 +02:00
Pavol Rusnak
7e41c2a568 add blowfish algo with tests 2013-10-07 21:48:32 +02:00
Pavol Rusnak
f87e706407 add define for RFC6979 2013-10-03 18:19:30 +02:00
Pavol Rusnak
678e5b1af2 use #if instead of #ifdef for conditional macros 2013-10-03 17:32:27 +02:00
Pavol Rusnak
3d163fc29b move speed-stm32 to trezor repo 2013-10-01 18:16:15 +02:00
Pavol Rusnak
1691d5cc8c small cleanup 2013-10-01 18:08:33 +02:00
Pavol Rusnak
e19f7cd2e5 add more rfc6979 test vectors by fpgaminer 2013-10-01 16:45:26 +02:00
Pavol Rusnak
71ff1c5124 replace infinite loops with loops with counters 2013-09-27 15:55:55 +02:00