From a4e3590bfa451f1299b4d876862735bfd43247c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 4 Sep 2026 16:13:34 +0200 Subject: [PATCH 1/2] Upgrade Ruma --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 24c26e5..a6de239 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"] [dependencies] hex = { version = "0.4.3", optional = true } hmac = { version = "0.12.1", optional = true } -ruma = { version = "0.16.0", features = ["api", "events"] } +ruma = { version = "0.17.0", features = ["api", "events"] } serde = { version = "1.0.118", features = ["derive"] } sha1 = { version = "0.10.1", optional = true } From 1c6dbc641503437783f0d92284901606a37aabcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 4 Sep 2026 16:15:57 +0200 Subject: [PATCH 2/2] Upgrade rust crypto crates --- Cargo.toml | 4 ++-- src/register_users/shared_secret_register/v1.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a6de239..e13d94f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"] [dependencies] hex = { version = "0.4.3", optional = true } -hmac = { version = "0.12.1", optional = true } +hmac = { version = "0.13.0", optional = true } ruma = { version = "0.17.0", features = ["api", "events"] } serde = { version = "1.0.118", features = ["derive"] } -sha1 = { version = "0.10.1", optional = true } +sha1 = { version = "0.11.0", optional = true } [dev-dependencies] serde_json = "1.0.61" diff --git a/src/register_users/shared_secret_register/v1.rs b/src/register_users/shared_secret_register/v1.rs index 4a05f43..3eaa99e 100644 --- a/src/register_users/shared_secret_register/v1.rs +++ b/src/register_users/shared_secret_register/v1.rs @@ -1,7 +1,7 @@ //! [POST /_synapse/admin/v1/register](https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md) #[cfg(feature = "shared-secret-registration-mac")] -use hmac::{Hmac, Mac, digest::InvalidLength}; +use hmac::{Hmac, KeyInit as _, Mac, digest::InvalidLength}; use ruma::{ OwnedDeviceId, OwnedServerName, OwnedUserId, api::{auth_scheme::NoAuthentication, metadata, request, response},