Skip to content

cipher: refactor asynchronous stream cipher traits#2083

Closed
newpavlov wants to merge 1 commit intomasterfrom
cipher/async_stream_refactor
Closed

cipher: refactor asynchronous stream cipher traits#2083
newpavlov wants to merge 1 commit intomasterfrom
cipher/async_stream_refactor

Conversation

@newpavlov
Copy link
Member

@newpavlov newpavlov commented Nov 7, 2025

This PR moves the AsyncStreamCipher trait into separate async_stream module and splits into separate encryptor and decryptor traits, making them sub-traits of the counterpart block mode traits.

TODO: add buffering wrapper and traits for buffered async stream ciphers or do it with inherent methods

@newpavlov
Copy link
Member Author

Closing in favor of #2280.

@newpavlov newpavlov closed this Feb 4, 2026
newpavlov added a commit that referenced this pull request Feb 4, 2026
This trait is used only by the CFB mode. It either should be reworked
(see #2083) or replaced with inherent methods in the `cfb-mode` crate.

To not block the v0.5 release, it's worth to simply remove it for now.
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.

1 participant