From 350e0dc3582af9a0b8c51968937dc096ae786a4a Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Fri, 17 Feb 2023 22:30:28 +0100 Subject: include username 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 2bd7639..d053f5d 100644 --- a/srp/src/utils.rs +++ b/srp/src/utils.rs @@ -28,6 +28,7 @@ pub fn compute_k(params: &SrpGroup) -> BigUint { // M1 = H(H(N) XOR H(g) | H(U) | s | A | B | K) pub fn compute_m1( params: &SrpGroup, + identity_hash: &[u8], a_pub: &[u8], b_pub: &[u8], key: &[u8], @@ -44,6 +45,7 @@ pub fn compute_m1( let mut d = D::new(); d.update(ng_xor); + d.update(identity_hash); d.update(a_pub); d.update(b_pub); d.update(key); -- cgit v1.2.3