aboutsummaryrefslogtreecommitdiff
path: root/spake2/src
diff options
context:
space:
mode:
Diffstat (limited to 'spake2/src')
-rw-r--r--spake2/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/spake2/src/lib.rs b/spake2/src/lib.rs
index ea488ba..80480f3 100644
--- a/spake2/src/lib.rs
+++ b/spake2/src/lib.rs
@@ -470,7 +470,7 @@ fn ed25519_hash_to_scalar(s: &[u8]) -> c2_Scalar {
// i % q
let mut okm = [0u8; 32 + 16];
- Hkdf::<Sha256>::extract(Some(b""), s)
+ Hkdf::<Sha256>::new(Some(b""), s)
.expand(b"SPAKE2 pw", &mut okm)
.unwrap();
//println!("expanded: {}{}", "................................", okm.iter().to_hex()); // ok