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 (1490B)


      1 cabal-version:      3.0
      2 name:               ppad-sha256
      3 version:            0.2.1
      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 source-repository head
     18   type:     git
     19   location: git.ppad.tech/sha256.git
     20 
     21 library
     22   default-language: Haskell2010
     23   hs-source-dirs:   lib
     24   ghc-options:
     25       -Wall
     26   exposed-modules:
     27       Crypto.Hash.SHA256
     28   build-depends:
     29       base >= 4.9 && < 5
     30     , bytestring >= 0.9 && < 0.13
     31 
     32 test-suite sha256-tests
     33   type:                exitcode-stdio-1.0
     34   default-language:    Haskell2010
     35   hs-source-dirs:      test
     36   main-is:             Main.hs
     37   other-modules:
     38     Wycheproof
     39 
     40   ghc-options:
     41     -rtsopts -Wall -O2
     42 
     43   build-depends:
     44       aeson
     45     , base
     46     , base16-bytestring
     47     , bytestring
     48     , ppad-sha256
     49     , tasty
     50     , tasty-hunit
     51     , text
     52 
     53 benchmark sha256-bench
     54   type:                exitcode-stdio-1.0
     55   default-language:    Haskell2010
     56   hs-source-dirs:      bench
     57   main-is:             Main.hs
     58 
     59   ghc-options:
     60     -rtsopts -O2 -Wall
     61 
     62   build-depends:
     63       base
     64     , bytestring
     65     , criterion
     66     , ppad-sha256
     67     , SHA
     68