packages feed

ppad-aead-0.3.2: ppad-aead.cabal

cabal-version:      3.0
name:               ppad-aead
version:            0.3.2
synopsis:           A pure AEAD-ChaCha20-Poly1305 construction
license:            MIT
license-file:       LICENSE
author:             Jared Tobin
maintainer:         jared@ppad.tech
category:           Cryptography
build-type:         Simple
tested-with:        GHC == 9.10.3
extra-doc-files:    CHANGELOG
description:
  A pure authenticated encryption with associated data
  (AEAD) implementation supporting ChaCha20-Poly1305, per
  [RFC8439](https://datatracker.ietf.org/doc/html/rfc8439).

flag llvm
  description: Use GHC's LLVM backend.
  default:     False
  manual:      True

source-repository head
  type:     git
  location: git.ppad.tech/aead.git

library
  default-language: Haskell2010
  hs-source-dirs:   lib
  ghc-options:
      -Wall
  if flag(llvm)
    ghc-options: -fllvm -O2
  exposed-modules:
      Crypto.AEAD.ChaCha20Poly1305
  build-depends:
      base >= 4.9 && < 5
    , bytestring >= 0.9 && < 0.13
    , ppad-chacha >= 0.2.1 && < 0.3
    , ppad-poly1305 >= 0.4.1 && < 0.5

test-suite aead-tests
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      test
  main-is:             Main.hs
  other-modules:
    Wycheproof

  ghc-options:
    -rtsopts -Wall -O2

  build-depends:
      aeson
    , base
    , bytestring
    , ppad-base16
    , ppad-aead
    , primitive
    , tasty
    , tasty-hunit
    , text

benchmark aead-bench
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      bench
  main-is:             Main.hs

  ghc-options:
    -rtsopts -O2 -Wall

  build-depends:
      base
    , bytestring
    , criterion
    , deepseq
    , ppad-base16
    , ppad-aead