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