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);