From 45916848ad9772349ccc557e9967fd17e37a8854 Mon Sep 17 00:00:00 2001 From: satvrn Date: Wed, 19 Jul 2023 02:27:39 +0000 Subject: [PATCH] update deps + bump version --- Cargo.toml | 12 ++++++------ src/dh.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2635ebf..13a951d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,21 +6,21 @@ homepage = "https://github.com/notsatvrn/double-ratchet-rs" repository = "https://github.com/notsatvrn/double-ratchet-rs" readme = "README.md" keywords = ["double-ratchet", "crypto", "cryptography", "signal"] -version = "0.4.4" +version = "0.4.5" edition = "2021" license = "MIT" [dependencies] -x25519-dalek = {version = "2.0.0-pre.1", default-features = false, features = ["serde", "u64_backend"]} +x25519-dalek = {version = "2.0.0-rc.3", default-features = false, features = ["serde", "static_secrets", "zeroize"]} rand_core = "0.6" hkdf = "0.12" hmac = "0.12" aes-gcm-siv = "0.11" sha2 = {version = "0.10", default-features = false} -serde = {version = "1", default-features = false, features = ["derive"]} -postcard = {version = "1", default-features = false, features = ["alloc"]} -hashbrown = {version = "0.13", features = ["serde"]} -zeroize = {version = "1.5", default-features = false, features = ["zeroize_derive"]} +serde = {version = "1.0", default-features = false, features = ["derive"]} +postcard = {version = "1.0", default-features = false, features = ["alloc"]} +hashbrown = {version = "0.14", features = ["serde"]} +zeroize = {version = "1.6", default-features = false, features = ["zeroize_derive"]} [dev-dependencies] criterion = "0.4" diff --git a/src/dh.rs b/src/dh.rs index 74a98c5..ac6722b 100644 --- a/src/dh.rs +++ b/src/dh.rs @@ -38,7 +38,7 @@ impl Default for DhKeyPair { impl DhKeyPair { pub fn new() -> Self { - let secret = StaticSecret::new(&mut OsRng); + let secret = StaticSecret::random_from_rng(&mut OsRng); let public = PublicKey::from(&secret); DhKeyPair { private_key: secret,