Skip to content

Commit f2920b1

Browse files
committed
Upgrade rust crypto crates
1 parent b0ff224 commit f2920b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"]
1818

1919
[dependencies]
2020
hex = { version = "0.4.3", optional = true }
21-
hmac = { version = "0.12.1", optional = true }
21+
hmac = { version = "0.13.0", optional = true }
2222
ruma = { version = "0.17.0", features = ["api", "events"] }
2323
serde = { version = "1.0.118", features = ["derive"] }
24-
sha1 = { version = "0.10.1", optional = true }
24+
sha1 = { version = "0.11.0", optional = true }
2525

2626
[dev-dependencies]
2727
serde_json = "1.0.61"

‎src/register_users/shared_secret_register/v1.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! [POST /_synapse/admin/v1/register](https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md)
22
33
#[cfg(feature = "shared-secret-registration-mac")]
4-
use hmac::{Hmac, Mac, digest::InvalidLength};
4+
use hmac::{Hmac, KeyInit as _, Mac, digest::InvalidLength};
55
use ruma::{
66
OwnedDeviceId, OwnedServerName, OwnedUserId,
77
api::{auth_scheme::NoAuthentication, metadata, request, response},

0 commit comments

Comments
 (0)