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

Add Crypto.Hash.shaxxx_bytes functions, taking Bytes as input #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

billstclair
Copy link
Contributor

Tests all pass, including the examples for the new functions.

I want to avoid a full copy of the Bytes, but that can wait until another day. It will be a minor version bump, but a sizable change to the hashing code.

I was tempted to just export Crypto.Hash.bytesDigest and add Crypto.SHA.Alg to the exported modules, but I chose to copy what's already there. I could be convinced otherwise.

I'd also like to add functions to hash File contents. That will require the chunked mechanism and a Task mechanism for fetching the bytes from the file. I won't do that unless somebody asks for it, or the idea nags me so much that I have to do it.

Note that if you no longer wish to maintain this package, I'd be happy to take it over.

If this pull request doesn't get at least a comment within a week, I'll make billstclair/elm-crypto, based on my GitHub fork. I don't want to do that.

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.

1 participant