summaryrefslogtreecommitdiff
path: root/openpgp-util.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-08-26 01:21:22 -0400
committerJoe Crayne <joe@jerkface.net>2019-07-01 09:19:55 -0400
commit7909c13a18e260af68819be7444829f799cb7c38 (patch)
tree3cb6f79309555b5638d2fe71af1c3a219a4d7f8b /openpgp-util.cabal
parentbecfa261ce50d9976c3720aaacd06e48488300af (diff)
WIP: support for cryptonite.
Diffstat (limited to 'openpgp-util.cabal')
-rw-r--r--openpgp-util.cabal35
1 files changed, 22 insertions, 13 deletions
diff --git a/openpgp-util.cabal b/openpgp-util.cabal
index b62195b..45248d4 100644
--- a/openpgp-util.cabal
+++ b/openpgp-util.cabal
@@ -116,6 +116,9 @@ extra-source-files:
116 tests/data/uncompressed-ops-dsa-sha384.txt.gpg, 116 tests/data/uncompressed-ops-dsa-sha384.txt.gpg,
117 tests/data/uncompressed-ops-rsa.gpg 117 tests/data/uncompressed-ops-rsa.gpg
118 118
119Flag cryptonite
120 Description: Use newer cryptonite-based libraries.
121 Default: True
119 122
120library 123library
121 exposed-modules: 124 exposed-modules:
@@ -133,28 +136,34 @@ library
133 base == 4.*, 136 base == 4.*,
134 transformers, 137 transformers,
135 bytestring, 138 bytestring,
136 time >= 1.4,
137 binary >= 0.5.1.0, 139 binary >= 0.5.1.0,
138 crypto-random >= 0.0.7, 140 cipher-cast5,
139 cryptohash >= 0.7.5,
140 crypto-pubkey >= 0.2.3,
141 crypto-pubkey-types >= 0.4.1,
142 cipher-cast5 -any,
143 byteable,
144 crypto-cipher-types >= 0.0.7,
145 cipher-blowfish,
146 cipher-aes >= 0.2.5,
147 utf8-string, 141 utf8-string,
148 zlib, 142 zlib,
149 bzlib 143 bzlib
150 144
145 if flag(cryptonite)
146 build-depends:
147 hourglass,
148 memory,
149 cryptonite
150 else
151 build-depends:
152 time >= 1.4,
153 byteable,
154 cipher-aes >= 0.2.5,
155 cipher-blowfish,
156 crypto-cipher-types >= 0.0.7,
157 crypto-random >= 0.0.7,
158 cryptohash >= 0.7.5,
159 crypto-pubkey >= 0.2.3,
160 crypto-pubkey-types >= 0.4.1
161
162
151test-suite tests 163test-suite tests
152 type: exitcode-stdio-1.0 164 type: exitcode-stdio-1.0
153 main-is: tests/suite.hs 165 main-is: tests/suite.hs
154 166
155 other-modules:
156 Data.OpenPGP.Arbitrary
157
158 build-depends: 167 build-depends:
159 base == 4.*, 168 base == 4.*,
160 bytestring, 169 bytestring,