ppad-poly1305.cabal (2439B)
1 cabal-version: 3.0 2 name: ppad-poly1305 3 version: 0.4.5 4 synopsis: A fast Poly1305 MAC 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 fast Poly1305 message authentication code, per 15 [RFC8439](https://datatracker.ietf.org/doc/html/rfc8439). 16 17 flag llvm 18 description: Use GHC's LLVM backend. 19 default: False 20 manual: True 21 22 flag sanitize 23 description: Build with AddressSanitizer and UndefinedBehaviorSanitizer. 24 default: False 25 manual: True 26 27 source-repository head 28 type: git 29 location: git.ppad.tech/poly1305.git 30 31 library 32 default-language: Haskell2010 33 hs-source-dirs: lib 34 ghc-options: 35 -Wall 36 if flag(llvm) 37 ghc-options: -fllvm -O2 38 exposed-modules: 39 Crypto.MAC.Poly1305 40 Crypto.MAC.Poly1305.Arm 41 other-modules: 42 Data.Barrier 43 build-depends: 44 base >= 4.9 && < 5 45 , bytestring >= 0.9 && < 0.13 46 , ppad-fixed >= 0.1.3 && < 0.2 47 c-sources: 48 cbits/poly1305_arm.c 49 if arch(aarch64) 50 cc-options: -march=armv8-a 51 if flag(sanitize) 52 cc-options: -fsanitize=address,undefined -fno-omit-frame-pointer 53 ghc-options: -optl=-fsanitize=address,undefined 54 55 test-suite poly1305-tests 56 type: exitcode-stdio-1.0 57 default-language: Haskell2010 58 hs-source-dirs: test 59 main-is: Main.hs 60 61 ghc-options: 62 -rtsopts -Wall -O2 63 if flag(sanitize) 64 ghc-options: -optl=-fsanitize=address,undefined 65 66 build-depends: 67 base 68 , bytestring 69 , ppad-base16 70 , ppad-poly1305 71 , primitive 72 , tasty 73 , tasty-hunit 74 75 benchmark poly1305-bench 76 type: exitcode-stdio-1.0 77 default-language: Haskell2010 78 hs-source-dirs: bench 79 main-is: Main.hs 80 81 ghc-options: 82 -rtsopts -O2 -Wall 83 84 build-depends: 85 base 86 , bytestring 87 , criterion 88 , deepseq 89 , ppad-base16 90 , ppad-poly1305 91 92 benchmark poly1305-weigh 93 type: exitcode-stdio-1.0 94 default-language: Haskell2010 95 hs-source-dirs: bench 96 main-is: Weight.hs 97 98 ghc-options: 99 -rtsopts -O2 -Wall 100 if flag(llvm) 101 ghc-options: -fllvm 102 103 build-depends: 104 base 105 , bytestring 106 , deepseq 107 , ppad-poly1305 108 , weigh 109