aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2017-05-25 14:32:19 -0700
committerBrian Warner <warner@lothar.com>2017-05-25 14:32:19 -0700
commit6d76b86c3215b12a06541416f4f155ae3ccf75e4 (patch)
treed138c3a950c47c0dc9ea9f6520898689b2d2a068 /src/lib.rs
parentf490a799829247aa0026f73d70178773b43adec7 (diff)
downloadPAKEs-6d76b86c3215b12a06541416f4f155ae3ccf75e4.tar.xz
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 7 insertions, 5 deletions
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 {