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 @@ -46,7 +46,7 @@ futures-io = "0.3.14"
46
46
futures-util = { version = " 0.3.14" , features = [" io" ] }
47
47
futures-executor = " 0.3.14"
48
48
hex = " 0.4.0"
49
- hmac = " 0.10.1 "
49
+ hmac = " 0.11 "
50
50
lazy_static = " 1.4.0"
51
51
md-5 = " 0.9.1"
52
52
os_info = { version = " 3.0.1" , default-features = false }
@@ -76,7 +76,7 @@ version = "0.20.1"
76
76
optional = true
77
77
78
78
[dependencies .pbkdf2 ]
79
- version = " 0.7.4 "
79
+ version = " 0.8 "
80
80
default-features = false
81
81
82
82
[dependencies .reqwest ]
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ fn mac<M: Mac + NewMac>(
517
517
auth_mechanism : & str ,
518
518
) -> Result < impl AsRef < [ u8 ] > > {
519
519
let mut mac =
520
- M :: new_varkey ( key) . map_err ( |_| Error :: unknown_authentication_error ( auth_mechanism) ) ?;
520
+ M :: new_from_slice ( key) . map_err ( |_| Error :: unknown_authentication_error ( auth_mechanism) ) ?;
521
521
mac. update ( input) ;
522
522
Ok ( mac. finalize ( ) . into_bytes ( ) )
523
523
}
Original file line number Diff line number Diff line change @@ -353,7 +353,8 @@ fn xor(lhs: &[u8], rhs: &[u8]) -> Vec<u8> {
353
353
}
354
354
355
355
fn mac_verify < M : Mac + NewMac > ( key : & [ u8 ] , input : & [ u8 ] , signature : & [ u8 ] ) -> Result < ( ) > {
356
- let mut mac = M :: new_varkey ( key) . map_err ( |_| Error :: unknown_authentication_error ( "SCRAM" ) ) ?;
356
+ let mut mac =
357
+ M :: new_from_slice ( key) . map_err ( |_| Error :: unknown_authentication_error ( "SCRAM" ) ) ?;
357
358
mac. update ( input) ;
358
359
match mac. verify ( signature) {
359
360
Ok ( _) => Ok ( ( ) ) ,
You can’t perform that action at this time.
0 commit comments