Upgrade sha2 to 0.9.3 (#14746)

This commit is contained in:
sakridge
2021-01-22 22:25:22 -08:00
committed by GitHub
parent bf1943e489
commit 191193289f
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);