File: RSA.cabal

package info (click to toggle)
haskell-rsa 1.2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 88 kB
  • sloc: haskell: 638; makefile: 2
file content (75 lines) | stat: -rw-r--r-- 2,440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name:       RSA
category:   Cryptography, Codec
version:    1.2.2.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, crypto-pubkey-types >= 0.2
 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.5
  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