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!(