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/Sha1.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/Sha1.hs')
-rw-r--r-- | src/Data/Digest/Sha1.hs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Data/Digest/Sha1.hs b/src/Data/Digest/Sha1.hs deleted file mode 100644 index 16101b0..0000000 --- a/src/Data/Digest/Sha1.hs +++ /dev/null @@ -1,12 +0,0 @@ -module Data.Digest.Sha1 - ( sha1 - ) where - -import Data.ByteString.Lazy (ByteString) - -import Data.Digest.Internal - -foreign import ccall "openssl/digest.h EVP_sha1" evpSha1 :: Algo - -sha1 :: ByteString -> Digest -sha1 = hash evpSha1 |