aead

Pure Haskell AEAD-ChaCha20-Poly1305 (docs.ppad.tech/aead).
git clone git://git.ppad.tech/aead.git
Log | Files | Refs | README | LICENSE

ppad-aead.cabal (1803B)


      1 cabal-version:      3.0
      2 name:               ppad-aead
      3 version:            0.3.4
      4 synopsis:           A pure AEAD-ChaCha20-Poly1305 construction
      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 authenticated encryption with associated data
     15   (AEAD) implementation supporting ChaCha20-Poly1305, per
     16   [RFC8439](https://datatracker.ietf.org/doc/html/rfc8439).
     17 
     18 flag llvm
     19   description: Use GHC's LLVM backend.
     20   default:     False
     21   manual:      True
     22 
     23 source-repository head
     24   type:     git
     25   location: git.ppad.tech/aead.git
     26 
     27 library
     28   default-language: Haskell2010
     29   hs-source-dirs:   lib
     30   ghc-options:
     31       -Wall
     32   if flag(llvm)
     33     ghc-options: -fllvm -O2
     34   exposed-modules:
     35       Crypto.AEAD.ChaCha20Poly1305
     36   other-modules:
     37       Data.Barrier
     38   build-depends:
     39       base >= 4.9 && < 5
     40     , bytestring >= 0.9 && < 0.13
     41     , ppad-chacha >= 0.2.2 && < 0.3
     42     , ppad-poly1305 >= 0.4.5 && < 0.5
     43 
     44 test-suite aead-tests
     45   type:                exitcode-stdio-1.0
     46   default-language:    Haskell2010
     47   hs-source-dirs:      test
     48   main-is:             Main.hs
     49   other-modules:
     50     Wycheproof
     51 
     52   ghc-options:
     53     -rtsopts -Wall -O2
     54 
     55   build-depends:
     56       aeson
     57     , base
     58     , bytestring
     59     , ppad-base16
     60     , ppad-aead
     61     , primitive
     62     , tasty
     63     , tasty-hunit
     64     , text
     65 
     66 benchmark aead-bench
     67   type:                exitcode-stdio-1.0
     68   default-language:    Haskell2010
     69   hs-source-dirs:      bench
     70   main-is:             Main.hs
     71 
     72   ghc-options:
     73     -rtsopts -O2 -Wall
     74 
     75   build-depends:
     76       base
     77     , bytestring
     78     , criterion
     79     , deepseq
     80     , ppad-base16
     81     , ppad-aead
     82