RSA-1.0.2: RSA.cabal
name: RSA
category: Cryptography, Codec
version: 1.0.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.2
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 IncludeMD5
Description: Include support for using MD5 in the various crypto routines.
Flag UseBinary
Description: Use the binary package for serializing keys.
Library
build-depends: base >= 3, bytestring, SHA, random
GHC-Options: -O2 -Wall -fno-ignore-asserts -fno-warn-orphans
if flag(UseBinary)
build-depends: binary
CPP-Options: -DUSE_BINARY
if flag(IncludeMD5) && flag(UseBinary)
build-depends: pureMD5
CPP-Options: -DINCLUDE_MD5
exposed-modules: Codec.Crypto.RSA
extensions: CPP, BangPatterns, PatternSignatures
Executable test_rsa
build-depends: base >= 3, bytestring, QuickCheck, SHA >= 1.0.1
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, PatternSignatures