From 6d76b86c3215b12a06541416f4f155ae3ccf75e4 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 25 May 2017 14:32:19 -0700 Subject: slow progress, got password-to-scalar working * ported spake2.py password-to-scalar function, since dalek's built-in one does it differently * added "side" byte in messages: emit in start(), strip+check in input() * rewrote transcript-hashing (since transcript is fixed-size) This adds a lot of debug prints, and moves a bunch of test-only code into the top level, all of which will need to be undone eventually. --- src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 4342a74..9083473 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,15 +1,17 @@ extern crate rand; extern crate curve25519_dalek; -extern crate sha2; +//extern crate sha2; +extern crate crypto; +extern crate num_bigint; + +extern crate hex; mod spake2; pub use spake2::*; -#[cfg(test)] -extern crate num_bigint; -#[cfg(test)] -extern crate hex; +//#[cfg(test)] +//extern crate hex; #[cfg(test)] mod tests { -- cgit v1.2.3