vincenthz / hs-cryptohash

efficient and practical cryptohashing in haskell. DEPRECATED in favor of cryptonite
Other
30 stars 24 forks source link

what size is the SHA3 hash result? #28

Closed cartazio closed 10 years ago

cartazio commented 10 years ago

While for my purpose (detecting duplicate documents) sha3 is overkill, I notice that the module doesn't specify WHICH sha3 hash is being computed.

vincenthz commented 10 years ago

If you want specific defined thing then you should use the SHA3_{224,256,384,512} types defined in Crypto.Hash, otherwise the size is the parameter of 'init' or 'hash' for Crypto.Hash.SHA3 (soon to be renamed Crypto.Hash.Kekkak)