haskell-crypto / cryptonite

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

Make the Hash Digest encode a fixed size block in it's type #341

Closed ghost closed 1 year ago

ghost commented 3 years ago

Rather than a variable size Block from the Basement package, is it feasible to have each HashAlgorithm define it's own fixed size Digest type? For example Sha256 goes to a "Digest Word256", where Word256 is from Basement? It would be nice having typed size guarantees for working with the results.