Skip to content

Commit

Permalink
Revert "wallet: increase keys encryption password iterations"
Browse files Browse the repository at this point in the history
This reverts commit 5ca829c.
  • Loading branch information
yito88 committed Aug 21, 2022
1 parent 915cdfe commit 8c6db6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/src/lib/wallet/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ fn encryption_salt() -> kdf::Salt {
/// Make encryption secret key from a password.
fn encryption_key(salt: &kdf::Salt, password: String) -> kdf::SecretKey {
kdf::Password::from_slice(password.as_bytes())
.and_then(|password| kdf::derive_key(&password, salt, 3, 1 << 17, 32))
.and_then(|password| kdf::derive_key(&password, salt, 3, 1 << 16, 32))
.expect("Generation of encryption secret key shouldn't fail")
}

0 comments on commit 8c6db6c

Please sign in to comment.