perf(ssh): Remove ChaCha20-Poly1305 algorithm (AES-GCM already achieves 100 MB/s)
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

This commit is contained in:
Warren
2026-06-19 23:36:47 +08:00
parent 5f61ebd328
commit 00767c1d26
5 changed files with 212 additions and 4 deletions

18
Cargo.lock generated
View File

@@ -678,6 +678,19 @@ dependencies = [
"zeroize",
]
[[package]]
name = "chacha20poly1305"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35"
dependencies = [
"aead 0.5.2",
"chacha20 0.9.1",
"cipher 0.4.4",
"poly1305 0.8.0",
"zeroize",
]
[[package]]
name = "chrono"
version = "0.4.44"
@@ -700,6 +713,7 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
dependencies = [
"crypto-common 0.1.7",
"inout 0.1.4",
"zeroize",
]
[[package]]
@@ -2678,6 +2692,8 @@ dependencies = [
"bcrypt",
"byteorder",
"bytes",
"chacha20 0.9.1",
"chacha20poly1305",
"chrono",
"cipher 0.4.4",
"clap",
@@ -2694,9 +2710,11 @@ dependencies = [
"log",
"md5 0.8.0",
"nix 0.29.0",
"poly1305 0.8.0",
"postgres",
"pulldown-cmark",
"rand 0.8.6",
"rayon",
"regex",
"rusqlite",
"russh",