Skip to content

Remove plaintext receive buffer#1788

Merged
Rob-Hague merged 1 commit intosshnet:developfrom
Rob-Hague:decryptinplace
May 5, 2026
Merged

Remove plaintext receive buffer#1788
Rob-Hague merged 1 commit intosshnet:developfrom
Rob-Hague:decryptinplace

Conversation

@Rob-Hague
Copy link
Copy Markdown
Collaborator

#1752 added a persistent buffer into which to decrypt packets, rather than allocating a new array for each packet. This was on the back of #1733 which added support in the cipher types for decrypting into a given buffer, but for the case of AES-CTR, not into the same buffer in-place. #1787 adds that missing support, meaning we can now decrypt in-place, and the plaintext buffer becomes unnecessary.

Branch based on #1787, this change is the 2nd commit

@Rob-Hague Rob-Hague marked this pull request as ready for review May 4, 2026 19:58
sshnet#1752 added a persistent buffer into which to decrypt packets, rather than allocating
a new array for each packet. This was on the back of sshnet#1733 which added support in the
cipher types for decrypting into a given buffer, but for the case of AES-CTR, not into
the same buffer in-place. sshnet#1787 adds that missing support, meaning we can now decrypt
in-place, and the plaintext buffer becomes unnecessary.
@Rob-Hague Rob-Hague merged commit b6217cb into sshnet:develop May 5, 2026
4 checks passed
@Rob-Hague Rob-Hague deleted the decryptinplace branch May 5, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants