Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digest: implement stream cipher trait for XOF readers #510

Open
newpavlov opened this issue Jan 30, 2021 · 0 comments
Open

digest: implement stream cipher trait for XOF readers #510

newpavlov opened this issue Jan 30, 2021 · 0 comments
Labels
digest Hash function crate

Comments

@newpavlov
Copy link
Member

Probably depends on introduction of a block-level trait for (synchronous) stream ciphers. After that a feature-gated blanket implementation will look somewhat like this:

impl<R: XofReaderCore> XofReader for XofReaderCoreWrapper<R> { .. }
impl<R: StreamCipherCore> StreamCipher for XofReaderCoreWrapper<R> { .. }

It would mean that core XOF reader types would have to implement both XofReaderCore and StreamCipherCore and there will be a bit of code duplication with a wrapper defined in cipher, but it should not be a big problem.

@newpavlov newpavlov added the digest Hash function crate label Jan 30, 2021
@tarcieri tarcieri mentioned this issue Feb 2, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
digest Hash function crate
Projects
None yet
Development

No branches or pull requests

1 participant