aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2018-10-17 10:44:37 -0700
committerBrian Warner <warner@lothar.com>2018-10-17 11:31:16 -0700
commit488b8101869e0f36cdee59fd5862c8c0d8ab8278 (patch)
treeb8571a17bb986e0664291176efd3ee9d29db5354
parentabb0dc09dbb7971da2ce16c974d5d4980ae969df (diff)
downloadPAKEs-488b8101869e0f36cdee59fd5862c8c0d8ab8278.tar.xz
update spake2 deps (sha2-0.8, hkdf-0.7)
-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()
}