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 /btls.cabal | |
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 'btls.cabal')
-rw-r--r-- | btls.cabal | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -33,9 +33,6 @@ library -Wno-safe -Wno-unsafe -optl-Wl,-z,relro -optl-Wl,-z,now -optl-Wl,-s exposed-modules: Data.Digest - , Data.Digest.Md5 - , Data.Digest.Sha1 - , Data.Digest.Sha2 other-modules: Data.Digest.Internal -- Use special names for the BoringSSL libraries to avoid accidentally pulling -- in OpenSSL. @@ -57,7 +54,8 @@ test-suite tests -Wno-safe -Wno-unsafe -optl-Wl,-z,relro -optl-Wl,-z,now -optl-Wl,-s main-is: Tests.hs - other-modules: Data.Digest.HashTests + other-modules: Data.DigestTests + , Data.Digest.HashTests , Data.Digest.Md5Tests , Data.Digest.Sha1Tests , Data.Digest.Sha2Tests |