File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ license = "MIT"
7
7
name = " scram"
8
8
readme = " README.md"
9
9
repository = " https://github.com/tomprogrammer/scram"
10
- version = " 0.2.0 "
10
+ version = " 0.2.1 "
11
11
12
12
[dependencies ]
13
- base64 = " 0.5.2 "
13
+ base64 = " 0.6 "
14
14
rand = " 0.3"
15
- ring = " 0.9.4 "
15
+ ring = " 0.11 "
Original file line number Diff line number Diff line change
1
+ Version 0.2.1 (2017-07-19)
2
+ ==========================
3
+ Update ` ring ` to version ` 0.11 ` and ` base64 ` to ` 0.6 ` .
4
+
1
5
Version 0.2.0 (2017-05-10)
2
6
==========================
3
7
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::borrow::Cow;
3
3
use base64;
4
4
use ring:: digest:: { digest, SHA256 , SHA256_OUTPUT_LEN } ;
5
5
use ring:: hmac:: { self , SigningKey , SigningContext } ;
6
- use ring:: pbkdf2:: { self , HMAC_SHA256 } ;
6
+ use ring:: pbkdf2;
7
7
8
8
/// Parses a part of a SCRAM message, after it has been split on commas.
9
9
/// Checks to make sure there's a key, and then verifies its the right key.
@@ -31,7 +31,7 @@ macro_rules! parse_part {
31
31
pub fn hash_password ( password : & str , iterations : u16 , salt : & [ u8 ] ) -> [ u8 ; SHA256_OUTPUT_LEN ] {
32
32
let mut salted_password = [ 0u8 ; SHA256_OUTPUT_LEN ] ;
33
33
pbkdf2:: derive (
34
- & HMAC_SHA256 ,
34
+ & SHA256 ,
35
35
u32:: from ( iterations) ,
36
36
salt,
37
37
password. as_bytes ( ) ,
You can’t perform that action at this time.
0 commit comments