packages feed

digest-sig (empty) → 0.1.0.0

raw patch · 6 files changed

+97/−0 lines, 6 filesdep +basedep +bytestring

Dependencies added: base, bytestring

Files

+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# digest-sig++## 0.1.0.0++Initial release
+ LICENSE view
@@ -0,0 +1,11 @@+Copyright Vanessa McHale (c) 2020++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:++1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.++3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,5 @@+# digest-sig++Signature implemented by+[digest-pure](http://hackage.haskell.org/package/digest-pure) and+[digest](http://hackage.haskell.org/package/digest).
+ digest-sig.cabal view
@@ -0,0 +1,48 @@+cabal-version:   2.0+name:            digest-sig+version:         0.1.0.0+license:         BSD3+license-file:    LICENSE+copyright:       Copyright: (c) 2020 Vanessa McHale+maintainer:      vamchale@gmail.com+author:          Vanessa McHale+synopsis:        Signature for digest+description:+    Provides an easily switchable layer for adler32 and crc32 checksums using backpack++category:        Cryptography+build-type:      Simple+extra-doc-files:+    README.md+    CHANGELOG.md++source-repository head+    type:     darcs+    location: https://hub.darcs.net/vmchale/sak+    subdir:   digest-sig++library+    signatures:+        Data.Digest.CRC32+        Data.Digest.Adler32++    hs-source-dirs:   src+    default-language: Haskell2010+    ghc-options:      -Wall+    build-depends:+        base >=4.3 && <5,+        bytestring -any++    if impl(ghc >=8.0)+        ghc-options:+            -Wincomplete-uni-patterns -Wincomplete-record-updates+            -Wredundant-constraints -Widentities++    if impl(ghc >=8.4)+        ghc-options: -Wmissing-export-lists++    if impl(ghc >=8.2)+        ghc-options: -Wcpp-undef++    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages
+ src/Data/Digest/Adler32.hsig view
@@ -0,0 +1,14 @@+signature Data.Digest.Adler32 ( Adler32 (..)+                              ) where++import           Data.ByteString      as BS+import qualified Data.ByteString.Lazy as BSL+import           Data.Word            (Word32)++class Adler32 a where+    adler32 :: a -> Word32++    adler32Update :: Word32 -> a -> Word32++instance Adler32 BS.ByteString+instance Adler32 BSL.ByteString
+ src/Data/Digest/CRC32.hsig view
@@ -0,0 +1,14 @@+signature Data.Digest.CRC32 ( CRC32 (..)+                            ) where++import           Data.ByteString      as BS+import qualified Data.ByteString.Lazy as BSL+import           Data.Word            (Word32)++class CRC32 a where+    crc32 :: a -> Word32++    crc32Update :: Word32 -> a -> Word32++instance CRC32 BS.ByteString+instance CRC32 BSL.ByteString