From 94c57f4ab56aace42cf43d42b9368d7de9abb592 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Mon, 10 May 2021 17:42:27 +0100 Subject: [PATCH] Deps: Bump xsalsa20poly1305 version -> 0.7 This dependency upgrade (at last) resolves the duplicated rand_core versions present in builds. This was tested using `cargo make ready`. --- Cargo.toml | 2 +- src/driver/connection/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d7be6f..d5ee5d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -126,7 +126,7 @@ features = ["v4"] [dependencies.xsalsa20poly1305] optional = true -version = "0.6" +version = "0.7" [dev-dependencies] criterion = "0.3" diff --git a/src/driver/connection/mod.rs b/src/driver/connection/mod.rs index 85922a5..18c60ce 100644 --- a/src/driver/connection/mod.rs +++ b/src/driver/connection/mod.rs @@ -319,7 +319,7 @@ async fn init_cipher(client: &mut WsStream, mode: CryptoMode) -> Result return Err(Error::CryptoModeInvalid); } - return Ok(Cipher::new_varkey(&desc.secret_key)?); + return Ok(Cipher::new_from_slice(&desc.secret_key)?); }, other => { debug!(