traits icon indicating copy to clipboard operation
traits copied to clipboard

cipher: replace `StreamCipherCoreWrapper` with a buffering macro?

Open newpavlov opened this issue 4 months ago • 1 comments

In digest we replaced generic buffering wrapper types with buffering macros. It results in a more convoluted and less transparent code from the developer point of view, but, on the other hand, it results in a simpler API for users, since they see only opaque buffered type with an explicit list of implemented traits.

newpavlov avatar Oct 22 '25 12:10 newpavlov

I think it would be good in general to give the same treatment to stream ciphers as well as universal-hash, but IMO it's not as important for these types as it was for digest since they're less user-facing, and I wouldn't block the next release on getting it done.

tarcieri avatar Oct 22 '25 13:10 tarcieri