From e15ef0be4f781d830521114741f753bcb956525e Mon Sep 17 00:00:00 2001 From: r4v3n6101 Date: Wed, 1 Apr 2026 15:37:06 +0300 Subject: [PATCH] srp: use compute_u_padded in client too --- srp/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srp/src/client.rs b/srp/src/client.rs index b474d33..4ccb5d7 100644 --- a/srp/src/client.rs +++ b/srp/src/client.rs @@ -215,7 +215,7 @@ impl Client { // Safeguard against malicious B self.validate_b_pub(&b_pub)?; - let u = compute_u::(&a_pub_bytes, b_pub_bytes); + let u = compute_u_padded::(&self.g, &a_pub_bytes, b_pub_bytes); let k = compute_k::(&self.g); let identity_hash = Self::compute_identity_hash(self.identity_username(username), password); let x = Self::compute_x(identity_hash.as_slice(), salt);