cosmos-sdk/crypto
Emmanuel T Odeke 417832fa9a
crypto/types: check for overflow and unreasonably large element count (#9163)
Ensure that we don't pass overflowed values into make, because
a clever attacker could see that to cause:

    (bits+7)/8

to become negative, they just have to make (bits+7) become negative
simply by >=maxint-6

but also reject unreasonably large element count like >2**32, which
while arbitrary is super duper large for a bit array.

Fixes #9162
2021-04-21 20:09:41 -07:00
..
codec crypto: add secp256r1 (#8559) 2021-03-04 12:29:48 +00:00
hd crypto/hd: make DerivePrivateKeyForPath error and not panic on trailing slashes (#8607) 2021-02-17 10:30:04 +00:00
keyring Remove bech32 PubKey support (#7477) 2021-03-25 14:53:22 +00:00
keys Remove bech32 PubKey support (#7477) 2021-03-25 14:53:22 +00:00
ledger Update ledger bech32 tests (#8981) 2021-03-26 10:20:46 +00:00
types crypto/types: check for overflow and unreasonably large element count (#9163) 2021-04-21 20:09:41 -07:00
armor.go Fix CryptoCdc inconsistent (#7987) 2020-12-02 14:50:50 +01:00
armor_test.go all: skip noisy/faulty benchmarks + add b.ReportAllocs for every benchmark (#8856) 2021-03-11 15:59:13 +00:00
bcrypt_readme.md merge crypto/keys/mintkey into crypto/ (#5880) 2020-03-27 10:24:19 +01:00