From d597c62367000e00125ed5aa376ba268717da69a Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Fri, 17 Feb 2023 22:42:04 +0100 Subject: include salt in client proof --- srp/src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srp/src/utils.rs') diff --git a/srp/src/utils.rs b/srp/src/utils.rs index d053f5d..5258c7a 100644 --- a/srp/src/utils.rs +++ b/srp/src/utils.rs @@ -29,6 +29,7 @@ pub fn compute_k(params: &SrpGroup) -> BigUint { pub fn compute_m1( params: &SrpGroup, identity_hash: &[u8], + salt: &[u8], a_pub: &[u8], b_pub: &[u8], key: &[u8], @@ -46,6 +47,7 @@ pub fn compute_m1( let mut d = D::new(); d.update(ng_xor); d.update(identity_hash); + d.update(salt); d.update(a_pub); d.update(b_pub); d.update(key); -- cgit v1.2.3