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"
4040err-derive = " 0.2.3"
4141futures = " 0.3.5"
4242hex = " 0.4.0"
43- hmac = " 0.10.1 "
43+ hmac = " 0.11 "
4444lazy_static = " 1.4.0"
4545md-5 = " 0.9.1"
4646os_info = { version = " 3.0.1" , default-features = false }
@@ -66,7 +66,7 @@ version = "1.6.2"
6666optional = true
6767
6868[dependencies .pbkdf2 ]
69- version = " 0.6.0 "
69+ version = " 0.8 "
7070default-features = false
7171
7272[dependencies .reqwest ]
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ fn mac<M: Mac + NewMac>(
496496 auth_mechanism : & str ,
497497) -> Result < impl AsRef < [ u8 ] > > {
498498 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) ) ?;
500500 mac. update ( input) ;
501501 Ok ( mac. finalize ( ) . into_bytes ( ) )
502502}
Original file line number Diff line number Diff line change @@ -354,7 +354,8 @@ fn xor(lhs: &[u8], rhs: &[u8]) -> Vec<u8> {
354354}
355355
356356fn 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" ) ) ?;
358359 mac. update ( input) ;
359360 match mac. verify ( signature) {
360361 Ok ( _) => Ok ( ( ) ) ,
You can’t perform that action at this time.
0 commit comments