-
Notifications
You must be signed in to change notification settings - Fork 194
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
Expose block nature of MAC functions? #216
Comments
Sounds a bit closer to the API that Though to make RustCrypto/universal-hashes#55 I guess one thing to potentially keep in mind, both for MACs and for |
One deficiency of the |
Perhaps we could have an API that acts on an arbitrary sized slice of blocks? |
Yes, it's a viable option, but we would have to keep in mind that |
Resolved in #819. |
…Crypto#216) Adds support for optional parameters for identifying a specific Argon2 secret key ID to use when computing a password hash, and optional associated data.
Most (if not all?) MAC constructs process messages in blocks. I think we either could add a
BlockMac
trait which would process messages in blocks (its state will not contain internal buffer for partially processed messages) and on top of which will be built aMac
implementation using wrapper defined incrypto-mac
, or less invasive approach would be to add a trait similar todigest::BlockInput
.Exposing block nature could be helpful for RustCrypto/AEADs#74 and may reduce some amount of boilerplate if we are to follow the first option.
The text was updated successfully, but these errors were encountered: