diff options
author | Brian Warner <warner@lothar.com> | 2017-05-25 14:41:39 -0700 |
---|---|---|
committer | Brian Warner <warner@lothar.com> | 2017-05-25 14:41:39 -0700 |
commit | 161f8227e70f0e58b8ff92c37e81bf0a28642c55 (patch) | |
tree | 57586fc2a936314626a7c87638609adc68a27ccd | |
parent | c87a7cafb9215ef56a3db764417b5ec778427b81 (diff) | |
download | PAKEs-161f8227e70f0e58b8ff92c37e81bf0a28642c55.tar.xz |
fix incorrect tests
the messages now match what I expect, but the final key does not. Next step
is to compare transcripts.
-rw-r--r-- | src/spake2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<Ed25519Group>::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"); |