sha256

Pure Haskell SHA-256, HMAC-SHA256 (docs.ppad.tech/sha256).
git clone git://git.ppad.tech/sha256.git
Log | Files | Refs | README | LICENSE

ppad-sha256.cabal (1619B)


      1 cabal-version:      3.0
      2 name:               ppad-sha256
      3 version:            0.2.3
      4 synopsis:           The SHA-256 and HMAC-SHA256 algorithms
      5 license:            MIT
      6 license-file:       LICENSE
      7 author:             Jared Tobin
      8 maintainer:         jared@ppad.tech
      9 category:           Cryptography
     10 build-type:         Simple
     11 tested-with:        GHC == { 9.8.1, 9.6.6, 9.6.4 }
     12 extra-doc-files:    CHANGELOG
     13 description:
     14   A pure implementation of SHA-256 and HMAC-SHA256 on strict and lazy
     15   ByteStrings, as specified by RFC's 6234 and 2104.
     16 
     17 flag llvm
     18   description: Use GHC's LLVM backend.
     19   default:     False
     20   manual:      True
     21 
     22 source-repository head
     23   type:     git
     24   location: git.ppad.tech/sha256.git
     25 
     26 library
     27   default-language: Haskell2010
     28   hs-source-dirs:   lib
     29   ghc-options:
     30       -Wall
     31   if flag(llvm)
     32     ghc-options: -fllvm -O2
     33   exposed-modules:
     34       Crypto.Hash.SHA256
     35   build-depends:
     36       base >= 4.9 && < 5
     37     , bytestring >= 0.9 && < 0.13
     38 
     39 test-suite sha256-tests
     40   type:                exitcode-stdio-1.0
     41   default-language:    Haskell2010
     42   hs-source-dirs:      test
     43   main-is:             Main.hs
     44   other-modules:
     45     Wycheproof
     46 
     47   ghc-options:
     48     -rtsopts -Wall -O2
     49 
     50   build-depends:
     51       aeson
     52     , base
     53     , bytestring
     54     , ppad-base16
     55     , ppad-sha256
     56     , tasty
     57     , tasty-hunit
     58     , text
     59 
     60 benchmark sha256-bench
     61   type:                exitcode-stdio-1.0
     62   default-language:    Haskell2010
     63   hs-source-dirs:      bench
     64   main-is:             Main.hs
     65 
     66   ghc-options:
     67     -rtsopts -O2 -Wall
     68 
     69   build-depends:
     70       base
     71     , bytestring
     72     , criterion
     73     , ppad-sha256
     74     , SHA
     75