Skip to content

Commit

Permalink
Merge branch '21-update-hkdf'
Browse files Browse the repository at this point in the history
refs #21
  • Loading branch information
warner committed Aug 7, 2019
2 parents 61cd8de + 695c070 commit 902c728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spake2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ is-it-maintained-open-issues = { repository = "RustCrypto/PAKEs" }
curve25519-dalek = "1"
rand = "0.6"
sha2 = "0.8"
hkdf = "0.7"
hkdf = "0.8"
hex = "0.3"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion spake2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 902c728

Please sign in to comment.