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

635 Commits

Author SHA1 Message Date
Pavol Rusnak
f481530aea
tests: add bip32_vector_3 2018-07-29 17:46:02 +02:00
Pavol Rusnak
a7463bcb85
tests: don't use AES_VAR for tests/libtrezor-crypto.so 2018-07-20 11:14:51 +02:00
Pavol Rusnak
5cd84e6870
tests: fix test_curves bug introduced in last commit 2018-07-16 14:51:50 +02:00
Pavol Rusnak
2de6d876a3
python: reformat python scripts using black 2018-07-16 14:38:09 +02:00
Ondřej Vejpustek
02a988cd26 integrate Wycheproof tests 2018-07-16 14:27:18 +02:00
Ondřej Vejpustek
8318ac35fc fix ed25519-donna signature malleability 2018-07-16 14:27:18 +02:00
matejcik
9b2de9584d test_curves: do not rely on CWD 2018-07-12 15:40:08 +02:00
Dusan Klinec
957b8129bd Allow to compile without Valgrind 2018-07-11 22:38:24 +02:00
Pavol Rusnak
ff001a0f12
bip32: drop ugly decitoa 2018-07-10 20:21:18 +02:00
Pavol Rusnak
1730601d30
refactor mnemonic_check and mnemonic_to_entropy, style changes 2018-07-10 20:04:41 +02:00
jmuravsky
18b109e2bd Add Cardano currency support 2018-07-10 19:09:21 +02:00
Pavol Rusnak
3e8974ff88
address: fix ethereum address computation, chain_id is uint32 2018-06-27 16:53:18 +02:00
Ilan
4153e662b6 Implement RSKIP-60 checksum address encoding 2018-06-27 16:44:38 +02:00
Jochen Hoenicke
f586155d80 Fix unaligned access in curve25519
Use only the safe conversion from uint8_t to uint32_t.
Actually, the ARM gcc-compiler is good enough to detect this pattern.
2018-06-22 09:44:59 +02:00
Pavol Rusnak
c26867d6f2
blake2s: add InitPersonal 2018-06-19 18:06:23 +02:00
Pavol Rusnak
669acd7331
blake2b: add personal_len to blake2b_InitPersonal 2018-06-15 10:19:10 +02:00
Karel Bilek
620902b9b3 blake2b: Fix overwinter hashers 2018-06-15 10:13:24 +02:00
Karel Bilek
a4c1d02865 blake2b: Add init with personal key
Necessary for zcash hashing
2018-06-15 10:13:24 +02:00
Pavol Rusnak
dba2361728
add overwinter hashers 2018-06-12 19:04:55 +02:00
Ondřej Vejpustek
afbe3e7551 fix rfc7539 padding 2018-05-25 16:03:09 +02:00
Pavol Rusnak
1a7483d43d
cashaddr: fix whitespace 2018-05-22 16:55:37 +02:00
Dusan Klinec
28d1225276 tests: test for ge25519_double_scalarmult_vartime2 added 2018-05-18 19:08:21 +02:00
Dusan Klinec
10788a82a1 ed25519: aA + bB double scalarmult added
- required for monero
2018-05-18 19:08:21 +02:00
Dusan Klinec
60805d0001 ed25519-donna/modm: sub more effective
- using trick: https://www.imperialviolet.org/2010/12/04/ecc.html
2018-04-30 23:55:11 +01:00
Dusan Klinec
6a20ba5586 ed25519-donna/modm: neg, sub added 2018-04-30 23:55:11 +01:00
Dusan Klinec
5708a7257f ed25519-donna/modm: comment typo fix 2018-04-30 23:55:11 +01:00
Pavol Rusnak
1adcaea9cd
remove debug printfs from test_check_cashaddr 2018-04-23 15:20:01 +01:00
Yura Pakhuchiy
bd81c2c6e7 Groestl hash: remove even more dead code 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
c861ad8bbc Groestl hash: more cleanups 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
f15605bd45 Groestl hash: fix -Wshadow warnings 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
9e08e8ce63 Groestl hash cleanup
- Remove unused code
- Remove x86 specific optimizations (to test code which closer to ARM on
emulator)
- Fix -Wundef warnings
2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
e7281cf9f5 Add GRS curve 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
5cb15e3420 Add tests for GRS addresses 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
08512053c4 Groestl hash: do it twice and truncate to 256 bits 2018-04-23 16:15:59 +02:00
Yura Pakhuchiy
2fdcebfbb6 Add Groestl hash 2018-04-23 16:15:59 +02:00
onvej-sl
8b61a7e365 python3 migration (#149) 2018-04-05 16:02:07 +02:00
Pavol Rusnak
7ea31aecf7
use python3 in travis 2018-04-05 14:52:59 +02:00
Pavol Rusnak
7111431890
move tests into tests/ 2018-04-05 13:26:59 +02:00
Pavol Rusnak
e81fb38ab4
fix cashaddr test 2018-04-05 11:53:00 +02:00
Jochen Hoenicke
e65adcf5ca Added cashaddr support (#120)
The new bitcoincash address format.
2018-04-05 11:15:05 +02:00
Jochen Hoenicke
c61ab76ad7 Reworked bn_format.
- Fix off-by-one in buffer size.
- Don't return uninitialized stack if number too large.
2018-04-05 09:24:41 +02:00
Jochen Hoenicke
9add21439a Adapted sha1 to match sha2 code.
Also fixes an unaligned uint32 access.
2018-04-05 09:24:41 +02:00
Jochen Hoenicke
2350bb015c Fix another undefined shift.
Note that `(1 << j)` is undefined for j == 31, so `(1u << j)` should be
used.
2018-04-05 09:24:41 +02:00
Peter D. Gray
b0af159096 bip32, options: optionally exclude 25519 curves in BIP32 support 2018-04-03 18:43:06 +02:00
Tomas Susanka
877998fa1a bip32/nem: IV is copied before encryption 2018-04-03 18:29:03 +02:00
Saleem Rashid
b9043659c5 test_openssl: Fix failing test 2018-04-03 18:28:06 +02:00
Saleem Rashid
c70e440128 hasher: Replace hasher_Double with HASHER_*D
This allows us to finely control when to use a single hash or a double hash in
various places. For example, Bitcoin signatures use double SHA256, but Decred
signatures use a single BLAKE256. However, both use double hashes for Base58.
2018-04-03 18:28:06 +02:00
Jochen Hoenicke
3d7d99a3e3 Fix out of bounds read
b58tobin needs to check if there are more leading zeros requested by
the address than there are available
2018-03-27 15:04:55 +02:00
Jochen Hoenicke
009850f6c9 Fixed undefined behavior
This fixes a shift by 32 and shifts on signed integer that overflow.
2018-03-27 15:04:55 +02:00
Tomas Susanka
49272f8d86 bip32/nem: added test data for encryption of block size multiple 2018-03-20 17:18:28 +01:00