Skip to content

Commit 8a93de2

Browse files
author
Thomas Bahn
committed
Update dependencies and release version 0.2.1
1 parent 62bea7e commit 8a93de2

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ license = "MIT"
77
name = "scram"
88
readme = "README.md"
99
repository = "https://github.com/tomprogrammer/scram"
10-
version = "0.2.0"
10+
version = "0.2.1"
1111

1212
[dependencies]
13-
base64 = "0.5.2"
13+
base64 = "0.6"
1414
rand = "0.3"
15-
ring = "0.9.4"
15+
ring = "0.11"

RELEASES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.2.1 (2017-07-19)
2+
==========================
3+
Update `ring` to version `0.11` and `base64` to `0.6`.
4+
15
Version 0.2.0 (2017-05-10)
26
==========================
37

src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::borrow::Cow;
33
use base64;
44
use ring::digest::{digest, SHA256, SHA256_OUTPUT_LEN};
55
use ring::hmac::{self, SigningKey, SigningContext};
6-
use ring::pbkdf2::{self, HMAC_SHA256};
6+
use ring::pbkdf2;
77

88
/// Parses a part of a SCRAM message, after it has been split on commas.
99
/// Checks to make sure there's a key, and then verifies its the right key.
@@ -31,7 +31,7 @@ macro_rules! parse_part {
3131
pub fn hash_password(password: &str, iterations: u16, salt: &[u8]) -> [u8; SHA256_OUTPUT_LEN] {
3232
let mut salted_password = [0u8; SHA256_OUTPUT_LEN];
3333
pbkdf2::derive(
34-
&HMAC_SHA256,
34+
&SHA256,
3535
u32::from(iterations),
3636
salt,
3737
password.as_bytes(),

0 commit comments

Comments
 (0)