c5e97b9bf7
## Issue Addressed Closes #1906 Closes #1907 ## Proposed Changes - Emits warnings when the KDF parameters are two low. - Returns errors when the KDF parameters are high enough to pose a potential DoS threat. - Validates AES IV length is 128 bits, errors if empty, warnings otherwise. ## Additional Info NIST advice used for PBKDF2 ranges https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf. Scrypt ranges are based on the maximum value of the `u32` (i.e 4GB of memory) The minimum range has been set to anything below the default fields.
28 lines
784 B
TOML
28 lines
784 B
TOML
[package]
|
|
name = "eth2_keystore"
|
|
version = "0.1.0"
|
|
authors = ["Pawan Dhananjay <pawan@sigmaprime.io", "Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
rand = "0.7.3"
|
|
aes-ctr = "0.5.0"
|
|
hmac = "0.9.0"
|
|
pbkdf2 = { version = "0.5.0", default-features = false }
|
|
scrypt = { version = "0.4.1", default-features = false }
|
|
sha2 = "0.9.1"
|
|
uuid = { version = "0.8.1", features = ["serde", "v4"] }
|
|
zeroize = { version = "1.1.1", features = ["zeroize_derive"] }
|
|
serde = "1.0.116"
|
|
serde_repr = "0.1.6"
|
|
hex = "0.4.2"
|
|
bls = { path = "../bls" }
|
|
eth2_ssz = "0.1.2"
|
|
serde_json = "1.0.58"
|
|
eth2_key_derivation = { path = "../eth2_key_derivation" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|