Skip to content

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

Open
billstclair wants to merge 1 commit into
ktonon:masterfrom
billstclair:master
Open

Add Crypto.Hash.shaxxx_bytes functions, taking Bytes as input#9
billstclair wants to merge 1 commit into
ktonon:masterfrom
billstclair:master

Conversation

@billstclair

Copy link
Copy Markdown
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