-
Notifications
You must be signed in to change notification settings - Fork 22
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
Provide a constructor for Hash
#25
Comments
I forgot that the The version of this type in the Also I'm sure the RustCrypto folks (who maintain the |
Yes. This is a good start! At least I can do all other stuff (parse from string) myself now.
I like this idea. It's better than having hash type by length (i.e. Hash32/Hash64), and clearer than using generic |
This is what we presently have in the https://docs.rs/digest/0.9.0/digest/type.Output.html
Unfortunately |
This sounds a bit more like the current https://docs.rs/crypto-mac/0.11.1/crypto_mac/struct.Output.html I believe @newpavlov has plans to unify |
I just landed the PR above. As part of publishing these changes, I'm leaning towards just tagging these crates v1.0.0 and calling everything stable. (Which wouldn't rule out any future enhancements to the |
That sounds fine to me. I guess the only thing to worry about is porting over the changes to |
Published |
It would be nice to be able to construct
Hash
from string or bytes to compare it to the computed hash, instead of comparing the string/bytes representation.Optional
serde
support would be even better.The text was updated successfully, but these errors were encountered: