Skip to content

refactor (pool 1/N): extract PSRP session crypto into crypto.rs#25

Closed
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 1 commit into
style/rustfmtfrom
stack/06-pool-extract-crypto
Closed

refactor (pool 1/N): extract PSRP session crypto into crypto.rs#25
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 1 commit into
style/rustfmtfrom
stack/06-pool-extract-crypto

Conversation

@irvingoujAtDevolution

Copy link
Copy Markdown
Collaborator

First step of decomposing the ~1900-line RunspacePool god-object (now that #20#24 are merged, this stacks on master).

Pure, behavior-preserving extraction of the SecureString / PSRP key-exchange crypto into runspace_pool/crypto.rs:

  • KeyExchangeState + the SecureString in-place encryption walk + the AES-256-CBC helper move out of pool.rs; module is private, items pub(super).
  • No logic, no wire-format change. cargo clippy clean, ironposh-client-core tests green.

Reviewed: Benoit-style pass + Codex pass (nits fixed: added //! module doc; narrowed mod visibility).

Pure, behavior-preserving move of the SecureString in-place encryption walk,
the AES-256-CBC helper, and KeyExchangeState out of the ~1900-line pool.rs into
a dedicated runspace_pool/crypto.rs module (private, items pub(super)). First
step of decomposing the RunspacePool god-object; no logic or wire-format change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant