ppad-sha256.cabal (2201B)
1 cabal-version: 3.0 2 name: ppad-sha256 3 version: 0.3.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.10.3 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 Crypto.Hash.SHA256.Arm 36 Crypto.Hash.SHA256.Internal 37 Crypto.Hash.SHA256.Lazy 38 build-depends: 39 base >= 4.9 && < 5 40 , bytestring >= 0.9 && < 0.13 41 c-sources: 42 cbits/sha256_arm.c 43 if arch(aarch64) 44 cc-options: -march=armv8-a+sha2 45 46 test-suite sha256-tests 47 type: exitcode-stdio-1.0 48 default-language: Haskell2010 49 hs-source-dirs: test 50 main-is: Main.hs 51 other-modules: 52 Property 53 Wycheproof 54 55 ghc-options: 56 -rtsopts -Wall -O2 57 58 build-depends: 59 aeson 60 , base 61 , bytestring 62 , ppad-base16 63 , ppad-sha256 64 , quickcheck-instances 65 , tasty 66 , tasty-hunit 67 , tasty-quickcheck 68 , text 69 70 benchmark sha256-bench 71 type: exitcode-stdio-1.0 72 default-language: Haskell2010 73 hs-source-dirs: bench 74 main-is: Main.hs 75 76 ghc-options: 77 -rtsopts -O2 -Wall 78 79 build-depends: 80 base 81 , bytestring 82 , criterion 83 , ppad-sha256 84 , SHA 85 86 benchmark sha256-weigh 87 type: exitcode-stdio-1.0 88 default-language: Haskell2010 89 hs-source-dirs: bench 90 main-is: Weight.hs 91 92 ghc-options: 93 -rtsopts -O2 -Wall -fno-warn-orphans 94 if flag(llvm) 95 ghc-options: -fllvm 96 97 build-depends: 98 base 99 , bytestring 100 , deepseq 101 , ppad-sha256 102 , weigh 103