Upgrade sha2 to 0.9.3 (#14746) (#14799)

(cherry picked from commit 191193289f)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2021-01-23 23:08:33 +00:00
committed by GitHub
parent 40f32fd37d
commit b48dd58fda
10 changed files with 136 additions and 40 deletions

View File

@@ -400,7 +400,7 @@ pub fn keypair_from_seed_phrase_and_passphrase(
seed_phrase: &str,
passphrase: &str,
) -> Result<Keypair, Box<dyn error::Error>> {
const PBKDF2_ROUNDS: usize = 2048;
const PBKDF2_ROUNDS: u32 = 2048;
const PBKDF2_BYTES: usize = 64;
let salt = format!("mnemonic{}", passphrase);