You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[sha3] Impl SyncStreamCipher for Sha3XofReader #181
Since the Shake variants are considered secure PRFs (stream ciphers), it would be nice if sha3::Sha3XofReader would implement stream_cipher::SyncStreamCipher. (Or if there would be a different way to get a stream cipher out of shake.)
Activity
[-]Impl `SyncStreamCipher` for `Sha3XofReader`[/-][+][sha3] Impl `SyncStreamCipher` for `Sha3XofReader`[/+]newpavlov commentedon Jan 13, 2021
I think we will do it on the trait crate level, i.e. we will have a blanket (feature-gated) impl of the stream cipher traits for XOFs.
niluxv commentedon Jan 21, 2021
Yes, that would be a lot nicer from an API perspective!
Why does it need to be feature-gated? It wouldn't be backwards incompatible, right?
tarcieri commentedon Jan 21, 2021
@niluxv it would introduce a dependency on the
ciphercrate in thedigestcrate. Presently there is no such dependency.Making the
cipherdependency optional means it'd only be used when needed, and other users ofdigestwould not see an additional dependency.Edit: made a note of this in RustCrypto/traits#478
niluxv commentedon Jan 23, 2021
Ah, yes, that makes sense. I should have known that. Thanks for answering!
newpavlov commentedon Jan 30, 2021
Going to close it in favor of RustCrypto/traits#510.