aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spake2/Cargo.toml4
-rw-r--r--spake2/src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/spake2/Cargo.toml b/spake2/Cargo.toml
index fa59070..469a98e 100644
--- a/spake2/Cargo.toml
+++ b/spake2/Cargo.toml
@@ -27,8 +27,8 @@ is-it-maintained-open-issues = { repository = "RustCrypto/PAKEs" }
[dependencies]
curve25519-dalek = "0.21"
rand = "0.5"
-sha2 = "0.7"
-hkdf = "0.6"
+sha2 = "0.8"
+hkdf = "0.7"
num-bigint = "0.2"
hex = "0.3"
diff --git a/spake2/src/lib.rs b/spake2/src/lib.rs
index 163cb26..5025800 100644
--- a/spake2/src/lib.rs
+++ b/spake2/src/lib.rs
@@ -240,7 +240,7 @@ fn ed25519_hash_ab(
//let mut hash = G::TranscriptHash::default();
let mut hash = Sha256::new();
- hash.input(&transcript);
+ hash.input(transcript.to_vec());
hash.result().to_vec()
}
@@ -285,7 +285,7 @@ fn ed25519_hash_symmetric(
transcript[128..160].copy_from_slice(key_bytes);
let mut hash = Sha256::new();
- hash.input(&transcript);
+ hash.input(transcript.to_vec());
hash.result().to_vec()
}