packages feed

curve25519-0.2: curve25519.cabal

name:                curve25519
version:             0.2
synopsis:            Fast implementations of the curve25519 elliptic curve primitives.
description:         Haskell bindings and extensions to the curve25519-donna
                     codebase.
homepage:            http://github.com/acw/curve25519
license:             BSD3
license-file:        LICENSE
author:              Adam Wick <awick@uhsure.com>
maintainer:          Adam Wick <awick@uhsure.com>
category:            Math
build-type:          Simple
cabal-version:       >=1.10

library
  default-language:    Haskell2010
  exposed-modules:     Crypto.Curve25519,
                       Crypto.Curve25519.Exceptions,
                       Crypto.Curve25519.Pure
  build-depends:       base       >= 4.7  && < 4.9,
                       bytestring >= 0.10 && < 0.12,
                       crypto-api >= 0.10 && < 0.14
  hs-source-dirs:      src
  if arch(x86_64)
     c-sources:        upstream-c/curve25519-donna-c64.c
  else
     c-sources:        upstream-c/curve25519-donna.c

test-suite test-curve25519
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0
  main-is:             Test.hs
  cc-options:          -Dmain=ctest_main
  c-sources:           upstream-c/test-curve25519.c
  build-depends:       base                       >= 4.7     && < 4.9,
                       bytestring                 >= 0.10    && < 0.12,
                       crypto-api                 >= 0.10    && < 0.14,
                       curve25519                 >= 0.2     && < 0.3,
                       DRBG                       >= 0.5     && < 0.7,
                       HUnit                      >= 1.2.5.2 && < 1.4,
                       QuickCheck                 >= 2.4     && < 2.8,
                       tagged                     >= 0.7     && < 0.9,
                       test-framework             >= 0.2     && < 1.0.0,
                       test-framework-hunit       >= 0.3     && < 0.5,
                       test-framework-quickcheck2 >= 0.3     && < 0.5

source-repository head
  type:                git
  location:            http://github.com/acw/curve25519