Repository navigation
feat: wire --aes/--no-aes to SSH cipher selection - #2369
Merged
Merged
Conversation
Plumb prefer_aes_gcm from ClientConfig through to SshCommand in both ssh_transfer and remote_to_remote paths. When enabled, injects -c [email protected],[email protected] into the SSH command line for hardware-accelerated encryption on modern CPUs. Add 5 tests covering forced enable, forced disable, default (no injection), custom options skip, and non-SSH program skip.
oferchen
force-pushed
the
feat/aes-ssh-cipher-wiring
branch
from
February 21, 2026 06:59
6b98855 to
ca7c053
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…2369) Plumb prefer_aes_gcm from ClientConfig through to SshCommand in both ssh_transfer and remote_to_remote paths. When enabled, injects -c [email protected],[email protected] into the SSH command line for hardware-accelerated encryption on modern CPUs. Add 5 tests covering forced enable, forced disable, default (no injection), custom options skip, and non-SSH program skip.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…2369) Plumb prefer_aes_gcm from ClientConfig through to SshCommand in both ssh_transfer and remote_to_remote paths. When enabled, injects -c [email protected],[email protected] into the SSH command line for hardware-accelerated encryption on modern CPUs. Add 5 tests covering forced enable, forced disable, default (no injection), custom options skip, and non-SSH program skip.
3 tasks done
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
1 task
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
prefer_aes_gcmfield andset_prefer_aes_gcm()method toSshCommandbuilderprefer_aes_gcmfromClientConfigthrough bothssh_transferandremote_to_remoteSSH spawn pathsDetails
The
--aes/--no-aespreference was not plumbed fromClientConfigto theSshCommandbuilder. Whenprefer_aes_gcmisSome(true), the SSH command now injects-c [email protected],[email protected]for hardware-accelerated encryption. The injection is guarded: it only applies when the program issshand no custom-coption is already present.Both the direct SSH transfer path (
build_ssh_connectioninssh_transfer.rs) and the proxy transfer path (spawn_ssh_connectioninremote_to_remote.rs) now callssh.set_prefer_aes_gcm(config.prefer_aes_gcm()).Test plan
cargo clippy -p rsync_io -p corepasses with no warningscargo nextest run -p rsync_io --all-features— 672 tests passcargo nextest run -p core --all-features— 1763 tests pass