haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

Add ByteArray deriving instance to Digest #342

Closed ghost closed 1 year ago

ghost commented 3 years ago

I'm iterating SHA256 and it would be nice to do this without doing a ByteArray.convert that copies the underlying data. If this might be awkward, if the underlying Digest type can be un-hidden in the library, I can do an orphan instance instead.