]> git.lizzy.rs Git - PAKEs.git/commitdiff
update spake2 deps (sha2-0.8, hkdf-0.7)
authorBrian Warner <warner@lothar.com>
Wed, 17 Oct 2018 17:44:37 +0000 (10:44 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 17 Oct 2018 18:31:16 +0000 (11:31 -0700)
spake2/Cargo.toml
spake2/src/lib.rs

index fa590703c67aeed646f656725a39de06281f1703..469a98ef1386614a6d822e925d76a61bb1c3a44d 100644 (file)
@@ -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"
 
index 163cb2616084e062f59586c06a29e42bf6bb1c1b..502580081cff813c2258fedba6f8258435f4a694 100644 (file)
@@ -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()
 }