File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ derivative = "2.1.1"
40
40
err-derive = " 0.2.3"
41
41
futures = " 0.3.5"
42
42
hex = " 0.4.0"
43
- hmac = " 0.10.1 "
43
+ hmac = " 0.11 "
44
44
lazy_static = " 1.4.0"
45
45
md-5 = " 0.9.1"
46
46
os_info = { version = " 3.0.1" , default-features = false }
@@ -66,7 +66,7 @@ version = "1.6.2"
66
66
optional = true
67
67
68
68
[dependencies .pbkdf2 ]
69
- version = " 0.6.0 "
69
+ version = " 0.8 "
70
70
default-features = false
71
71
72
72
[dependencies .reqwest ]
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ fn mac<M: Mac + NewMac>(
496
496
auth_mechanism : & str ,
497
497
) -> Result < impl AsRef < [ u8 ] > > {
498
498
let mut mac =
499
- M :: new_varkey ( key) . map_err ( |_| Error :: unknown_authentication_error ( auth_mechanism) ) ?;
499
+ M :: new_from_slice ( key) . map_err ( |_| Error :: unknown_authentication_error ( auth_mechanism) ) ?;
500
500
mac. update ( input) ;
501
501
Ok ( mac. finalize ( ) . into_bytes ( ) )
502
502
}
Original file line number Diff line number Diff line change @@ -354,7 +354,8 @@ fn xor(lhs: &[u8], rhs: &[u8]) -> Vec<u8> {
354
354
}
355
355
356
356
fn mac_verify < M : Mac + NewMac > ( key : & [ u8 ] , input : & [ u8 ] , signature : & [ u8 ] ) -> Result < ( ) > {
357
- let mut mac = M :: new_varkey ( key) . map_err ( |_| Error :: unknown_authentication_error ( "SCRAM" ) ) ?;
357
+ let mut mac =
358
+ M :: new_from_slice ( key) . map_err ( |_| Error :: unknown_authentication_error ( "SCRAM" ) ) ?;
358
359
mac. update ( input) ;
359
360
match mac. verify ( signature) {
360
361
Ok ( _) => Ok ( ( ) ) ,
You can’t perform that action at this time.
0 commit comments