update deps + bump version
This commit is contained in:
parent
d5f9760546
commit
45916848ad
2 changed files with 7 additions and 7 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -6,21 +6,21 @@ homepage = "https://github.com/notsatvrn/double-ratchet-rs"
|
||||||
repository = "https://github.com/notsatvrn/double-ratchet-rs"
|
repository = "https://github.com/notsatvrn/double-ratchet-rs"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["double-ratchet", "crypto", "cryptography", "signal"]
|
keywords = ["double-ratchet", "crypto", "cryptography", "signal"]
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
[dependencies]
|
[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"
|
rand_core = "0.6"
|
||||||
hkdf = "0.12"
|
hkdf = "0.12"
|
||||||
hmac = "0.12"
|
hmac = "0.12"
|
||||||
aes-gcm-siv = "0.11"
|
aes-gcm-siv = "0.11"
|
||||||
sha2 = {version = "0.10", default-features = false}
|
sha2 = {version = "0.10", default-features = false}
|
||||||
serde = {version = "1", default-features = false, features = ["derive"]}
|
serde = {version = "1.0", default-features = false, features = ["derive"]}
|
||||||
postcard = {version = "1", default-features = false, features = ["alloc"]}
|
postcard = {version = "1.0", default-features = false, features = ["alloc"]}
|
||||||
hashbrown = {version = "0.13", features = ["serde"]}
|
hashbrown = {version = "0.14", features = ["serde"]}
|
||||||
zeroize = {version = "1.5", default-features = false, features = ["zeroize_derive"]}
|
zeroize = {version = "1.6", default-features = false, features = ["zeroize_derive"]}
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.4"
|
criterion = "0.4"
|
||||||
|
|
|
@ -38,7 +38,7 @@ impl Default for DhKeyPair {
|
||||||
|
|
||||||
impl DhKeyPair {
|
impl DhKeyPair {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let secret = StaticSecret::new(&mut OsRng);
|
let secret = StaticSecret::random_from_rng(&mut OsRng);
|
||||||
let public = PublicKey::from(&secret);
|
let public = PublicKey::from(&secret);
|
||||||
DhKeyPair {
|
DhKeyPair {
|
||||||
private_key: secret,
|
private_key: secret,
|
||||||
|
|
Loading…
Reference in a new issue