Skip to content

Commit

Permalink
Deps: Bump xsalsa20poly1305 version -> 0.7
Browse files Browse the repository at this point in the history
This dependency upgrade (at last) resolves the duplicated rand_core versions present in builds. This was tested using `cargo make ready`.
  • Loading branch information
FelixMcFelix committed May 10, 2021
1 parent a1ba760 commit eb22443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ features = ["v4"]

[dependencies.xsalsa20poly1305]
optional = true
version = "0.6"
version = "0.7"

[dev-dependencies]
criterion = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/driver/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async fn init_cipher(client: &mut WsStream, mode: CryptoMode) -> Result<Cipher>
return Err(Error::CryptoModeInvalid);
}

return Ok(Cipher::new_varkey(&desc.secret_key)?);
return Ok(Cipher::new_from_slice(&desc.secret_key)?);
},
other => {
debug!(
Expand Down

0 comments on commit eb22443

Please sign in to comment.