Pavol Rusnak
9c2cfb0470
refactor pbkdf2 functions to make them more readable
2018-09-11 17:53:02 +02:00
Pavol Rusnak
b679a6b2a7
rename hasher_multisig to hasher_script
2018-09-05 19:53:35 +02:00
Pavol Rusnak
f9caee2489
introduce hasher_multisig to curve_info
2018-09-05 18:30:51 +02:00
Pavol Rusnak
5e85d57def
minor nitpick in test_bip32_optimized
2018-09-05 17:34:42 +02:00
Pavol Rusnak
a83c233d7e
fix unused-const-variable
2018-09-05 17:17:05 +02:00
Pavol Rusnak
a59742817f
include options.h in ed25519.h
2018-09-05 16:26:58 +02:00
Pavol Rusnak
e6b5538a8e
add USE_CARDANO default to options.h
2018-09-05 15:04:32 +02:00
Pavol Rusnak
0d215161dc
refactor cardano internal scalar functions
2018-09-05 12:59:37 +02:00
Pavol Rusnak
9da140fbf8
drop float usage from pbkdf2
2018-09-05 12:38:57 +02:00
Pavol Rusnak
e929313f53
small changes to cardano due to last commit
2018-09-05 12:16:23 +02:00
Dušan Plavák
d2bc03fb59
replace cardano with v2 ( #179 )
2018-09-05 12:08:36 +02:00
Ondřej Vejpustek
cabc926b39
move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c ( #177 )
2018-09-03 16:22:35 +02:00
Dusan Klinec
13f51319d8
updates to the monero branch
2018-09-03 16:22:35 +02:00
Dusan Klinec
4aea73e4bb
xmr: monero crypto implemented, tests
2018-09-03 16:22:35 +02:00
leoreinaux
1863045da4
add smartcash curve ( #176 )
2018-08-30 12:02:42 +02:00
Dusan Klinec
bf1e1b13a6
chacha20poly1305: header polution reduction
...
- including chacah20poly1305.h polutes general namespace with macros defined in ecrypt-portable.h and ecrypt-machine.h which are needed only for .c files and should not leak to general namespace
- I've extracted types definition from ecrypt-portable.h to ecrypt-types.h as types are needed for interface definition in ecypt-sync.h which is needed in chacha20poly1305.h
2018-08-22 13:28:00 +02:00
Dusan Klinec
b9edb3b976
ed25519: ROTR, ROTL removed from header file
...
- redundant, not used in trezor-crypto
- clashes with another ROTR from poly1305 header files if included together
2018-08-22 13:25:14 +02:00
Dusan Klinec
f1eca08383
ed25519: scalarmult fixes
...
- operation result parameter can be the same as operation input parameter
- operation returns full extended Edwards point
2018-08-21 18:40:40 +02:00
Dusan Klinec
72da171f28
ed25519: double scalarmult fix
...
- return fully valid ed point
2018-08-21 18:27:47 +02:00
Pavol Rusnak
d454a48b51
aes: update to newest version
2018-08-14 13:05:21 +02:00
Pavol Rusnak
5d62454c6a
refactor hashers, introduce HASHER_SHA2_RIPEMD160
2018-08-01 15:03:43 +02:00
Matheus Degiovani
0b0f01fb59
Fix decred bip32 name
2018-08-01 13:31:46 +02:00
Pavol Rusnak
456037599f
hasher: add HASHER_SHA3{,K}
2018-07-31 14:20:18 +02:00
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