From 161f8227e70f0e58b8ff92c37e81bf0a28642c55 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 25 May 2017 14:41:39 -0700 Subject: fix incorrect tests the messages now match what I expect, but the final key does not. Next step is to compare transcripts. --- src/spake2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/spake2.rs b/src/spake2.rs index a21d662..11f4f6f 100644 --- a/src/spake2.rs +++ b/src/spake2.rs @@ -493,12 +493,12 @@ mod test { println!(); assert_eq!(expected_pw_scalar.as_bytes().to_hex(), - s1.xy_scalar.as_bytes().to_hex()); + s1.password_scalar.as_bytes().to_hex()); assert_eq!(msg1.to_hex(), expected_msg1); let (s2, msg2) = SPAKE2::::start_b_internal( b"password", b"idA", b"idB", scalar_b); - assert_eq!(expected_pw_scalar, s2.xy_scalar); + assert_eq!(expected_pw_scalar, s2.password_scalar); assert_eq!(msg2.to_hex(), "42354e97b88406922b1df4bea1d7870f17aed3dba7c720b313edae315b00959309"); -- cgit v1.2.3