-
Notifications
You must be signed in to change notification settings - Fork 2
/
ambiata-tinfoil.cabal
213 lines (182 loc) · 8.15 KB
/
ambiata-tinfoil.cabal
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
name: ambiata-tinfoil
version: 0.0.1
license: Apache-2.0
author: Ambiata <info@ambiata.com>
maintainer: Ambiata <info@ambiata.com>
copyright: (c) 2015 Ambiata.
synopsis: Paranoid crypto primitives
category: System
cabal-version: >= 1.8
build-type: Custom
description: Primitives for cryptographic random number generation,
key deriviation, credential storage and verification,
et cetera.
library
build-depends:
base >= 3 && < 5
, ambiata-p
, ambiata-x-eithert
, base16-bytestring == 0.1.1.*
, base64-bytestring == 1.0.0.*
, binary >= 0.5 && < 0.9
, bytestring >= 0.10.4 && < 0.11
, cryptonite >= 0.15 && < 0.25
, deepseq-generics == 0.2.0.*
, memory >= 0.11 && < 0.15
, semigroups >= 0.16 && < 0.19
, text == 1.2.*
, transformers >= 0.3 && < 0.6
, unix == 2.7.*
ghc-options:
-Wall
hs-source-dirs:
src
exposed-modules:
Tinfoil
Tinfoil.AEAD.AESGCM.Constraints
Tinfoil.AEAD.AESGCM.Data
Tinfoil.AEAD.AESGCM.Error
Tinfoil.AEAD.AESGCM.Foreign
Tinfoil.AEAD.AESGCM.Iv
Tinfoil.Comparison
Tinfoil.Data
Tinfoil.Data.Hash
Tinfoil.Data.KDF
Tinfoil.Data.Key
Tinfoil.Data.MAC
Tinfoil.Data.Random
Tinfoil.Data.Signing
Tinfoil.Data.Token
Tinfoil.Data.Verify
Tinfoil.Encode
Tinfoil.Hash
Tinfoil.Internal.Sodium
Tinfoil.Internal.Sodium.Data
Tinfoil.Internal.Sodium.Foreign
Tinfoil.KDF
Tinfoil.KDF.Scrypt
Tinfoil.KDF.Scrypt.Internal
Tinfoil.Key
Tinfoil.MAC
Tinfoil.Random
Tinfoil.Random.Internal
Tinfoil.Signing.Ed25519
Tinfoil.Signing.Ed25519.Internal
Tinfoil.Token
c-sources:
-- tinfoil's own c bits
cbits/tinfoil/memory.c
cbits/tinfoil/sodium/constants.c
-- scrypt (https://github.com/Tarsnap/scrypt)
, cbits/scrypt/insecure_memzero.c
, cbits/scrypt/sha256.c
, cbits/scrypt/warnp.c
, cbits/scrypt/cpusupport_x86_aesni.c
, cbits/scrypt/cpusupport_x86_sse2.c
, cbits/scrypt/crypto_scrypt_smix.c
, cbits/scrypt/crypto_scrypt_smix_sse2.c
, cbits/scrypt/crypto_scrypt.c
cc-options:
-- x86 extensions
-msse3
-- Warnings.
-Waggregate-return
-Wall
-Wbad-function-cast
-Wcast-align
-Wcast-qual
-Wextra
-Winit-self
-Wmissing-prototypes
-Wpointer-arith
-Wshadow
-Wstrict-prototypes
-Wundef
-Wvla
-Wwrite-strings
include-dirs: cbits/scrypt
, cbits/tinfoil
, gen/libsodium/include
, lib/libsodium/src/libsodium/include
includes: crypto_scrypt.h
, tinfoil.h
, sodium.h
install-includes: crypto_scrypt.h
, tinfoil.h
test-suite test
type: exitcode-stdio-1.0
main-is: test.hs
ghc-options: -Wall -threaded -O2 -pgml ./bin/salted-gcc
hs-source-dirs:
test
build-depends:
base >= 3 && < 5
, ambiata-tinfoil
, ambiata-disorder-core
, ambiata-disorder-corpus
, ambiata-p
, binary >= 0.5 && < 0.9
, bytestring >= 0.10.4 && < 0.11
, QuickCheck >= 2.7 && < 2.9
, quickcheck-instances == 0.3.*
, quickcheck-text == 0.1.*
, semigroups
, text == 1.2.*
test-suite test-io
type: exitcode-stdio-1.0
main-is: test-io.hs
ghc-options: -Wall -threaded -O2 -pgml ./bin/salted-gcc
hs-source-dirs:
test
build-depends:
base >= 3 && < 5
, ambiata-tinfoil
, ambiata-disorder-core
, ambiata-disorder-corpus
, ambiata-p
, ambiata-x-eithert
, bytestring >= 0.10.4 && < 0.11
, QuickCheck >= 2.7 && < 2.9
, quickcheck-instances == 0.3.*
, quickcheck-text == 0.1.*
, process >= 1.2 && < 1.5
, semigroups
, temporary == 1.2.0.*
, text == 1.2.*
test-suite test-random
type: exitcode-stdio-1.0
main-is: test-random.hs
ghc-options: -Wall -threaded -O2
hs-source-dirs:
test
build-depends:
base >= 3 && < 5
, ambiata-tinfoil
, ambiata-p
, bytestring >= 0.10.4 && < 0.11
, QuickCheck >= 2.7 && < 2.9
, quickcheck-instances == 0.3.*
, semigroups
, statistics == 0.13.2.*
, text
, vector == 0.11.*
benchmark bench
type: exitcode-stdio-1.0
main-is: bench.hs
ghc-options: -Wall -threaded -O2 -pgml ./bin/salted-gcc
hs-source-dirs:
test
build-depends:
base >= 3 && < 5
, QuickCheck >= 2.7 && < 2.9
, ambiata-disorder-core
, ambiata-disorder-corpus
, ambiata-p
, ambiata-tinfoil
, bytestring >= 0.10.4 && < 0.11
, criterion == 1.1.*
, quickcheck-instances == 0.3.*
, quickcheck-text == 0.1.*
, random == 1.1.*
, semigroups
, text == 1.2.*