update ring to version 0.11.0

This commit is contained in:
João Oliveira 2017-12-07 03:44:54 +00:00
parent d09e0d96fe
commit f49a0a9503
3 changed files with 397 additions and 340 deletions

733
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@ mount = "0.3.0"
params = { git = "https://github.com/euclio/params", branch="update" }
rand = "0.3.15"
regex = "0.2.2"
ring = "0.9.7"
ring = "0.11.0"
reqwest = "0.6.2"
router = "0.5.1"
secure-session = "0.2.0"

View file

@ -17,7 +17,7 @@ pub struct User {
pub admin: i32,
}
static DIGEST_ALG: &'static pbkdf2::PRF = &pbkdf2::HMAC_SHA256;
static DIGEST_ALG: &'static digest::Algorithm = &digest::SHA256;
const CREDENTIAL_LEN: usize = digest::SHA256_OUTPUT_LEN;
const HASH_ITERATIONS: u32 = 10000;
type PasswordHash = [u8; CREDENTIAL_LEN];