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: add block-level API #380

Merged
merged 2 commits into from
Jan 18, 2021
Merged

digest: add block-level API #380

merged 2 commits into from
Jan 18, 2021

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Dec 4, 2020

This PR exposes block-level API and adds a wrapper type which implements the higher-level traits. It allows to remove some of boilerplate from the implementation crates, plus we no longer need the macro for implementing io::Read. Also it will allow a more efficient HMAC implementation.

Additionally PR removes the variable length API in favor of making type generic over output length as suggested in #262.

@newpavlov newpavlov marked this pull request as ready for review December 4, 2020 13:31
Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a nice improvement!

@jplatte
Copy link

jplatte commented Jan 11, 2021

What's the status of this? It seems like it's the only major change holding back releases of digest and blake2 (RustCrypto/hashes#198).

@newpavlov
Copy link
Member Author

@jplatte
I wanted to implement block stream cipher trait for XofReaderCore to solve RustCrypto/hashes#181, but unfortunately I couldn't find a good block API for stream ciphers (see #444 for the most recent issue). I probably will simply omit it for now, so digest v0.10 will not be blocked on release of cipher v0.3.

@newpavlov newpavlov merged commit 7875ef6 into master Jan 18, 2021
@newpavlov newpavlov deleted the digest_core branch January 18, 2021 13:43
@newpavlov newpavlov mentioned this pull request Jan 22, 2021
6 tasks
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.

None yet

3 participants