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


      1 cabal-version:      3.0
      2 name:               ppad-aead
      3 version:            0.3.1
      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   build-depends:
     37       base >= 4.9 && < 5
     38     , bytestring >= 0.9 && < 0.13
     39     , ppad-chacha >= 0.2.1 && < 0.3
     40     , ppad-poly1305 >= 0.4.1 && < 0.5
     41 
     42 test-suite aead-tests
     43   type:                exitcode-stdio-1.0
     44   default-language:    Haskell2010
     45   hs-source-dirs:      test
     46   main-is:             Main.hs
     47   other-modules:
     48     Wycheproof
     49 
     50   ghc-options:
     51     -rtsopts -Wall -O2
     52 
     53   build-depends:
     54       aeson
     55     , base
     56     , bytestring
     57     , ppad-base16
     58     , ppad-aead
     59     , primitive
     60     , tasty
     61     , tasty-hunit
     62     , text
     63 
     64 benchmark aead-bench
     65   type:                exitcode-stdio-1.0
     66   default-language:    Haskell2010
     67   hs-source-dirs:      bench
     68   main-is:             Main.hs
     69 
     70   ghc-options:
     71     -rtsopts -O2 -Wall
     72 
     73   build-depends:
     74       base
     75     , bytestring
     76     , criterion
     77     , deepseq
     78     , ppad-base16
     79     , ppad-aead
     80