packages feed

RSA-1.2.0.0: RSA.cabal

name:       RSA
category:   Cryptography, Codec
version:    1.2.0.0
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.6
tested-with: GHC ==6.8.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 test
  Default:     False
  Description: Building the test program

Flag IncludeMD5
  Description: Include support for using MD5 in the various crypto routines.

Flag UseBinary
  Description: Use the binary package for serializing keys.

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

Library
 build-depends: bytestring, crypto-api >= 0.10, monadcryptorandom
 GHC-Options: -O2 -Wall -fno-ignore-asserts -fno-warn-orphans
 if flag(OldBase)
   build-depends: base >= 3 && < 4, SHA < 1.4.1
 else
   build-depends: base >= 4 && < 5, SHA
 if flag(UseBinary)
   build-depends: binary
   CPP-Options: -DUSE_BINARY
 if flag(IncludeMD5) && flag(UseBinary)
   if flag(OldBase)
      build-depends: pureMD5 < 1.1
   else
      build-depends: pureMD5
   CPP-Options: -DINCLUDE_MD5
 exposed-modules: Codec.Crypto.RSA
 extensions: CPP, BangPatterns, ScopedTypeVariables

Executable test_rsa
  if flag(test)
    if flag(OldBase)
      build-depends: base >= 3 && < 4, SHA < 1.4.1
    else
      build-depends: base >= 4 && < 5, SHA
    build-depends: bytestring, test-framework >= 0.3 && < 0.7,
                   QuickCheck >= 2 && < 3,
                   test-framework-quickcheck2 >= 0.2 && < 0.7,
                   DRBG >= 0.2.3 && < 0.4,
                   tagged >= 0.2.3 && < 0.4
  else
    Buildable: False
  GHC-Options: -O2 -Wall -fno-ignore-asserts -fno-warn-orphans 
  CPP-Options: -DRSA_TEST
  Main-Is: Test.hs
  Other-Modules: Codec.Crypto.RSA
  extensions: CPP, BangPatterns, ScopedTypeVariables

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