diff options
author | Brian Warner <warner@lothar.com> | 2017-05-25 14:32:19 -0700 |
---|---|---|
committer | Brian Warner <warner@lothar.com> | 2017-05-25 14:32:19 -0700 |
commit | 6d76b86c3215b12a06541416f4f155ae3ccf75e4 (patch) | |
tree | d138c3a950c47c0dc9ea9f6520898689b2d2a068 /src/lib.rs | |
parent | f490a799829247aa0026f73d70178773b43adec7 (diff) | |
download | PAKEs-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.rs | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 { |