diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-03-23 18:34:42 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-03-23 18:34:42 -0400 |
commit | 0ed87caa3481cbb6f8c2e809e5ec7df6f6245406 (patch) | |
tree | e7267e4b7996920577aa556ff7a67a312a271216 /src/Data/Digest/Md5.hs | |
parent | 3e898da300395bc3e63780b8d27a97fd4a9c375c (diff) |
Data.Digest: Reify hash algorithms
Eliminate the functional interface for hashing. Hashing now occurs
exclusively through the `hash` function, which accepts a
`Data.Digest.Algorithm`. This makes btls somewhat less extensible, but
it’s the most elegant way to support HMACs.
Diffstat (limited to 'src/Data/Digest/Md5.hs')
-rw-r--r-- | src/Data/Digest/Md5.hs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Data/Digest/Md5.hs b/src/Data/Digest/Md5.hs deleted file mode 100644 index 194633b..0000000 --- a/src/Data/Digest/Md5.hs +++ /dev/null @@ -1,12 +0,0 @@ -module Data.Digest.Md5 - ( md5 - ) where - -import Data.ByteString.Lazy (ByteString) - -import Data.Digest.Internal - -foreign import ccall "openssl/digest.h EVP_md5" evpMd5 :: Algo - -md5 :: ByteString -> Digest -md5 = hash evpMd5 |