aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2018-08-20 21:39:41 -0700
committerBrian Warner <warner@lothar.com>2018-08-20 21:39:41 -0700
commit4119bda304dd15547ae04ce0429e627c5e6ba3cb (patch)
tree64ccce0674ed30f68e7b9ddacc10ef02d2808ee3
parente0bc10980efff253d02f571393c083d2adeaee13 (diff)
downloadPAKEs-4119bda304dd15547ae04ce0429e627c5e6ba3cb.tar.xz
cargo fmt
-rw-r--r--src/spake2.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/spake2.rs b/src/spake2.rs
index 67c2acc..a258c4c 100644
--- a/src/spake2.rs
+++ b/src/spake2.rs
@@ -185,8 +185,10 @@ fn ed25519_hash_to_scalar(s: &[u8]) -> c2_Scalar {
// i = int(h, 16)
// i % q
- let mut okm = [0u8; 32+16];
- Hkdf::<Sha256>::extract(Some(b""), s).expand(b"SPAKE2 pw", &mut okm).unwrap();
+ let mut okm = [0u8; 32 + 16];
+ Hkdf::<Sha256>::extract(Some(b""), s)
+ .expand(b"SPAKE2 pw", &mut okm)
+ .unwrap();
//println!("expanded: {}{}", "................................", okm.iter().to_hex()); // ok
let mut reducible = [0u8; 64]; // little-endian