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


      1 cabal-version:      3.0
      2 name:               ppad-aead
      3 version:            0.3.8
      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   -- LLVM's x86 backend rewrites a cmov whose operand is a load as a
     35   -- branch (its cmov converter), which would make the borrow-masked
     36   -- correction of ppad-fixed's sub_mod# (inlinable here) a branch on
     37   -- the borrow; keep the cmov.
     38   if flag(llvm) && arch(x86_64)
     39     ghc-options: -optlc=-x86-cmov-converter=false
     40   exposed-modules:
     41       Crypto.AEAD.ChaCha20Poly1305
     42   other-modules:
     43       Data.Barrier
     44   build-depends:
     45       base >= 4.9 && < 5
     46     , bytestring >= 0.9 && < 0.13
     47     , ppad-chacha >= 0.3.1 && < 0.4
     48     , ppad-poly1305 >= 0.4.8 && < 0.5
     49 
     50 test-suite aead-tests
     51   type:                exitcode-stdio-1.0
     52   default-language:    Haskell2010
     53   hs-source-dirs:      test
     54   main-is:             Main.hs
     55   other-modules:
     56     Wycheproof
     57 
     58   ghc-options:
     59     -rtsopts -Wall -O2
     60 
     61   build-depends:
     62       aeson
     63     , base
     64     , bytestring
     65     , ppad-base16
     66     , ppad-aead
     67     , primitive
     68     , tasty
     69     , tasty-hunit
     70     , text
     71 
     72 benchmark aead-bench
     73   type:                exitcode-stdio-1.0
     74   default-language:    Haskell2010
     75   hs-source-dirs:      bench
     76   main-is:             Main.hs
     77 
     78   ghc-options:
     79     -rtsopts -O2 -Wall
     80 
     81   build-depends:
     82       base
     83     , bytestring
     84     , criterion
     85     , deepseq
     86     , ppad-base16
     87     , ppad-aead
     88