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

683 Commits

Author SHA1 Message Date
Pavol Rusnak
8434b2468c
tools: fix arguments to ecdsa functions 2019-03-26 18:55:50 +01:00
Pavol Rusnak
4211ce389f
bignum: check values of decimals and exponent in bn_format 2019-02-16 16:49:12 +01:00
Saleem Rashid
2ac59892b7
nem: refactor serialization code 2019-02-16 16:49:12 +01:00
Pavol Rusnak
e3caf14c43
memzero: add newlib support 2019-02-16 16:14:12 +01:00
Andrew Kozlik
b2a0d55fd6 memzero: automate the selection of the implementation (#196) 2019-02-16 16:03:46 +01:00
Pavol Rusnak
ad51a5451c
hasher: use param_size in call to blake2b_InitPersonal 2019-02-16 15:04:34 +01:00
Pavol Rusnak
21391dc5be
hasher: add param_size to hasher_InitParam 2019-01-31 19:18:06 +01:00
Pavol Rusnak
8c2bac9594
hasher: don't hardcore zcash stuff into hasher 2019-01-31 19:05:53 +01:00
Pavol Rusnak
b7e99aa76c
bip39: truncate long passphrases (more than 256 characters) 2019-01-23 20:04:57 +01:00
Pavol Rusnak
e829823f1e
use memzero from libsodium 2019-01-23 19:39:17 +01:00
Pavol Rusnak
d1c52401e4
bip39: remove indexes functions, add mnemonic_clear function 2019-01-23 18:35:30 +01:00
Pavol Rusnak
c316e775a2
replace all usage of memset(_, 0, _) with memzero 2019-01-23 16:43:34 +01:00
Pavol Rusnak
5cb2c71f08
bignum: add assumption about i to bn_multiply_reduce_step 2019-01-23 15:45:25 +01:00
Tomas Susanka
c34e8ab3bd
rand: add a reseed function to be used in tests 2019-01-02 14:36:02 +01:00
Pavol Rusnak
b9e8adc160
rand: fix typo 2018-12-18 12:08:49 +01:00
Tomas Susanka
54727e6650 rand: switch to 'Numerical Recipes' constants and remove random8 to increase period 2018-12-18 12:02:24 +01:00
andrew
c5227fdb96
rand.c: for testing purposes seed the pseudorandom number generator with 0
instead of the current time.

This is needed to ensure identical pseudorandom outputs when running tests.
2018-12-06 12:54:02 +01:00
Andrew Kozlik
7079277fb0 Fix counter initialization bug in rfc7539_init(). Fix const correctness in rfc7539.h and chacha20poly1305.h. (#188) 2018-11-30 15:17:52 +01:00
Pavol Rusnak
2bbbc3e155
cash_addr: fix hardcoded value of CHECKSUM_SIZE 2018-10-25 11:57:03 +02:00
Pavol Rusnak
5c6b472883
fix signed/unsigned comparison 2018-10-23 23:34:47 +02:00
Pavol Rusnak
eacfa751f9
base58: bail out when output buffer is empty 2018-10-23 18:01:44 +02:00
Pavol Rusnak
a938a1c901
nix: add shell.nix 2018-10-16 11:29:58 +02:00
Pavol Rusnak
60b5b7032c
hasher: add HASHER_SAPLING_PREIMAGE 2018-10-16 11:29:45 +02:00
Pavol Rusnak
2b7d9bd579
use env where possible 2018-09-30 15:40:18 +02:00
Clément Nussbaumer
f9523f97df Improve function naming (#181)
Changes the `ecdsa_verify_digest_recover` function to `ecdsa_recover_pub_from_sig`, to avoid confusion
Fix #180
2018-09-13 14:58:29 +02:00
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