cosmos-sdk/client
Dev Ojha 337e87b228 Merge PR #1449: crypto/keys: make bcrypt security param a var
This is done so that the time spent on bcrypt during test cases
can be reduced. This change reduces the amount of time lcd tests
spend on bcrypt from 76% to 40%. (We need to reduce the number of
calls to bcrypt in a seperate PR, along with fixing other sources
of slowness)

Making the bcrypt security parameter a var shouldn't be a security issue:
One can't verify an invalid key by maliciously changing the bcrypt
parameter during a runtime vulnerability. The main security
threat this then exposes would be something that changes this during
runtime before the user creates their key. This vulnerability must
succeed to update this to that same value before every subsequent call
to gaiacli keys in future startups / or the attacker must get access
to the filesystem. However, with this same threat model (changing
variables in runtime), one can cause the user to sign a different tx
than what they see, which is a significantly cheaper attack then breaking
a bcrypt hash. (Recall that the nonce still exists to break rainbow
tables)
2018-06-29 09:22:06 +02:00
..
context Ledger integration (#931) 2018-06-29 02:54:47 +02:00
keys Ledger integration (#931) 2018-06-29 02:54:47 +02:00
lcd Merge PR #1449: crypto/keys: make bcrypt security param a var 2018-06-29 09:22:06 +02:00
rpc Ledger integration (#931) 2018-06-29 02:54:47 +02:00
tx Ledger integration (#931) 2018-06-29 02:54:47 +02:00
flags.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
input.go Merge PR #1227: Set all Error strings 1st letters to lowercase. Fixes issue #1154 2018-06-13 21:13:22 +02:00
keys.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00