packages feed

cipher-aes128-0.3: cipher-aes128.cabal

-- Initial cipher.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                cipher-aes128
version:             0.3
synopsis:            AES128 using AES-NI when available.
description:         AES128 with crypto-api instances and a trampoline between Vincent Hanquez's C-based and x86 NI-based AES.  Patches welcome to add additional high-performance backends (ARM?)
license:             BSD3
license-file:        LICENSE
author:              Thomas M. DuBuisson, Vincent Hanquez (See AUTHORS file)
maintainer:          thomas.dubuisson@gmail.com
copyright:           Thomas M. DuBuisson
category:            Cryptography
homepage:            https://github.com/TomMD/cipher-aes128
bug-reports:         https://github.com/TomMD/cipher-aes128/issues
build-type:          Custom
cabal-version:       >=1.12

extra-source-files:       ./cbits/include/aes.h
                        , ./cbits/include/aes_generic.h
                        , ./cbits/include/aes_types.h
                        , ./cbits/include/aes_x86ni.h
                        , ./cbits/include/bitfn.h
                        , ./cbits/include/block128.h
                        , ./cbits/aes/LICENSE
                        , AUTHORS
library
  default-language:    Haskell2010
  exposed-modules:     Crypto.Cipher.AES128, Crypto.Cipher.AES128.Internal
  build-depends:       base >=4.5 && < 5,
                       bytestring,
                       crypto-api >= 0.11,
                       tagged,
                       cereal
  ghc-options:         -Wall -O2

  c-sources:              ./cbits/aes/aes.c
                        , ./cbits/aes/ni/aes_x86ni.c
                        , ./cbits/aes/generic/aes_generic.c
  include-dirs:        cbits/include
  cc-options:          -O3

source-repository head
  type:         git
  location:     https://github.com/TomMD/cipher-aes128

benchmark bench
  type:         exitcode-stdio-1.0
  hs-source-dirs:       . Benchmark
  main-is:              bench.hs
  build-depends:        base < 5, criterion, crypto-api, entropy, bytestring, tagged, cereal
  ghc-options:          -O2
  include-dirs:        cbits/include
  c-sources:              ./cbits/aes/aes.c
                        , ./cbits/aes/ni/aes_x86ni.c
                        , ./cbits/aes/generic/aes_generic.c
  cc-options:          -O3