packages feed

RSA-2: RSA.cabal

name:       RSA
category:   Cryptography, Codec
version:    2
license:    BSD3
license-file: LICENSE
author:     Adam Wick <awick@galois.com>
maintainer: Adam Wick <awick@galois.com>
stability:  stable
build-type: Simple
cabal-version: >= 1.8
tested-with: GHC ==7.4.0
synopsis: Implementation of RSA, using the padding schemes of PKCS#1 v2.1.
description: This library implements the RSA encryption and signature 
             algorithms for arbitrarily-sized ByteStrings. While the 
             implementations work, they are not necessarily the fastest ones
             on the planet. Particularly key generation. The algorithms
             included are based of RFC 3447, or the Public-Key Cryptography
             Standard for RSA, version 2.1 (a.k.a, PKCS#1 v2.1).   

Flag OldBase
  Description: Whether or not to use base 3 (default: no)
  Default: False

Library
 hs-source-dirs: src
 build-depends: binary > 0.0 && < 10000,
                bytestring > 0.8 && < 10000,
                crypto-api >= 0.10 && < 10000,
                crypto-pubkey-types >= 0.2 && < 10000,
                monadcryptorandom > 0 && < 10000

 if flag(OldBase)
   build-depends: base >= 3 && < 4,
                  pureMD5 < 1.1,
                  SHA < 1.4.1
 else
   build-depends: base >= 4 && < 7,
                  pureMD5 > 0 && < 10000,
                  SHA > 0 && < 10000

 exposed-modules: Codec.Crypto.RSA,
                  Codec.Crypto.RSA.Exceptions,
                  Codec.Crypto.RSA.Pure

 GHC-Options: -Wall -fno-warn-orphans
 extensions: BangPatterns, DeriveDataTypeable

Test-Suite test-RSA
  type:       exitcode-stdio-1.0
  Main-Is: Test.hs

  if flag(OldBase)
    build-depends: base >= 3 && < 4,
                   pureMD5 < 1.1,
                   SHA < 1.4.1
  else
    build-depends: base >= 4 && < 7,
                   pureMD5 > 0 && < 10000,
                   SHA > 0 && < 10000

  build-depends: binary > 0.0 && < 10000,
                 bytestring > 0.8 && < 10000,
                 crypto-api >= 0.10 && < 10000,
                 crypto-pubkey-types >= 0.2 && < 10000,
                 DRBG > 0.5 && < 10000,
                 QuickCheck >= 2.4 && < 3,
                 RSA >= 2 && < 10000,
                 tagged >= 0.2 && < 10000,
                 test-framework >= 0.8.0.3 && < 10000,
                 test-framework-quickcheck2 >= 0.3.0.2 && < 10000
  GHC-Options: -Wall -fno-warn-orphans 
  extensions: ScopedTypeVariables

source-repository head
  type: git
  location: git://github.com/GaloisInc/RSA.git