Fix issues with static secrets

main
trivernis 10 months ago
parent 5bf368e568
commit b993bed67b
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -0,0 +1,11 @@
[language-server.rust-analyzer]
command = "rust-analyzer"
[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false
cargo.features = "all"

@ -34,7 +34,7 @@ rmp-serde = { version = "1.1.2", optional = true }
bincode = { version = "1.3.3", optional = true }
serde_json = { version = "1.0.113", optional = true }
chacha20poly1305 = { version = "0.10.1", optional = true }
x25519-dalek = { version = "2.0.0", optional = true }
x25519-dalek = { version = "2.0.0", optional = true, features = ["static_secrets"] }
rand = { version = "0.8.5", optional = true }
rand_core = { version = "0.6.4", optional = true }
sha2 = { version = "0.10.8", optional = true }

@ -2,7 +2,8 @@ use crate::prelude::encrypted::{EncryptedStream, Keys};
use crate::prelude::{IPCError, IPCResult};
use crate::protocol::AsyncProtocolStream;
use bytes::Bytes;
use chacha20poly1305::aead::{Aead, NewAead};
use chacha20poly1305::aead::Aead;
use chacha20poly1305::KeyInit;
use chacha20poly1305::{ChaCha20Poly1305, Key, Nonce};
use rand::thread_rng;
use rand_core::RngCore;

Loading…
Cancel
Save