File: raaz.cabal

package info (click to toggle)
haskell-raaz 0.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 564 kB
  • ctags: 323
  • sloc: haskell: 3,569; ansic: 1,499; makefile: 7
file content (221 lines) | stat: -rw-r--r-- 7,464 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
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
214
215
216
217
218
219
220
221
name:    raaz
version: 0.0.2

synopsis: The raaz cryptographic library.

description: Raaz is a cryptographic network library for Haskell
  designed to use strong typing to eliminate some common errors that
  occur in cryptographic settings like side channel attacks. This
  package implements basic types and cryptographic primitives like
  hashes, macs etc. Actual network protocols are expected to use this
  library. Common abstractions like for example packet parsing should
  be part of this library.

homepage: http://github.com/raaz-crypto/raaz

license:      BSD3
license-file: LICENSE
author:       Piyush P Kurur
maintainer:   ppk@cse.iitk.ac.in

category:      Codec, Raaz
build-type:    Simple
cabal-version: >=1.9.2

bug-reports: https://github.com/raaz-crypto/raaz/issues

source-repository head
  type: git
  location: https://github.com/raaz-crypto/raaz

library

  ghc-options: -Wall
  -- Conditional compilation using CPP

  -- 1. Configuring system PRG.
  --
  --    * HAVE_SYSTEM_PRG: If a system prg is exposed.
  --
  --    * HAVE_DEV_URANDON: If the device /dev/urandom exists.
  --
  if os(linux) || os(freebsd) || os(openbsd) || os(netbsd) || os(osx)
     cpp-options: -DHAVE_SYSTEM_PRG
                  -DHAVE_DEV_URANDOM
  -- 2. Memory Locking
  --    System supports mlock/munlock calls.
  -- configurations for memory locking
  if !os(windows)
     cpp-options: -DHAVE_MLOCK

  -- 3. Platform macros for endian conversion functions
  --
  if os(linux)
     cc-options: -DPLATFORM_LINUX
  if os(freebsd) || os(netbsd)
     cc-options: -DPLATFORM_BSD
  if os(openbsd)
     cc-options: -DPLATFORM_OPENBSD


  exposed-modules: Raaz
                 , Raaz.Core
                 , Raaz.Core.ByteSource
                 , Raaz.Core.DH
                 , Raaz.Core.Encode
                 , Raaz.Core.Memory
                 , Raaz.Core.MonoidalAction
                 , Raaz.Core.Parse.Applicative
                 , Raaz.Core.Primitives
                 , Raaz.Core.Random
                 , Raaz.Core.Types
                 , Raaz.Core.Util
                 , Raaz.Core.Write
                 --
                 -- Cryptographic hashes
                 --
                 , Raaz.Hash
                 , Raaz.Hash.Internal

                 -- , Raaz.Hash.Blake256
                 -- , Raaz.Hash.Blake256.Internal
                 , Raaz.Hash.Sha1
                 , Raaz.Hash.Sha1.Implementation.CPortable
                 , Raaz.Hash.Sha224
                 , Raaz.Hash.Sha224.Implementation.CPortable
                 , Raaz.Hash.Sha256
                 , Raaz.Hash.Sha256.Implementation.CPortable
                 , Raaz.Hash.Sha384
                 , Raaz.Hash.Sha384.Implementation.CPortable
                 , Raaz.Hash.Sha512
                 , Raaz.Hash.Sha512.Implementation.CPortable
                 --
                 -- Ciphers
                 --
                 , Raaz.Cipher
                 , Raaz.Cipher.Internal
                 , Raaz.Cipher.AES
                 -- Exposed Implementations of AES.
                 , Raaz.Cipher.AES.CBC.Implementation.CPortable
                 -- , Raaz.Cipher.AES.CTR
                 -- , Raaz.Cipher.Salsa20
                 -- , Raaz.Cipher.Salsa20.Internal
  other-modules: Raaz.Core.Constants
               , Raaz.Core.Encode.Internal
               , Raaz.Core.Encode.Base16
               , Raaz.Core.Encode.Base64
               , Raaz.Core.Util.ByteString
               , Raaz.Core.Types.Pointer
               , Raaz.Core.Types.Tuple
               , Raaz.Core.Types.Equality
               , Raaz.Core.Types.Endian
               , Raaz.Core.Types.Describe
	       --
	       -- Hashes
	       --
               , Raaz.Hash.Internal.HMAC
               , Raaz.Hash.Sha.Util
               , Raaz.Hash.Sha1.Internal
               , Raaz.Hash.Sha1.Recommendation
               , Raaz.Hash.Sha256.Recommendation
               , Raaz.Hash.Sha256.Internal
               , Raaz.Hash.Sha224.Recommendation
               , Raaz.Hash.Sha224.Internal
               , Raaz.Hash.Sha384.Recommendation
               , Raaz.Hash.Sha384.Internal
               , Raaz.Hash.Sha512.Recommendation
               , Raaz.Hash.Sha512.Internal
               -- , Raaz.Hash.Blake256.Instance
               -- , Raaz.Hash.Blake256.Ref
               -- , Raaz.Hash.Blake256.CPortable
               -- , Raaz.Hash.Blake256.Type
               -- , Raaz.Hash.Blake.Util

               --
               -- Internal modules from cipher
               --
               , Raaz.Cipher.AES.Internal
               , Raaz.Cipher.AES.Recommendation

               -- , Raaz.Cipher.AES.CTR.CPortable
               -- , Raaz.Cipher.AES.CTR.Instance
               -- , Raaz.Cipher.AES.CTR.Ref
               -- , Raaz.Cipher.AES.CTR.Type
               -- , Raaz.Cipher.Salsa20.Block.Internal
               -- , Raaz.Cipher.Salsa20.Block.Type
               -- , Raaz.Cipher.Salsa20.Instances
               -- , Raaz.Cipher.AES.Block.Internal
               , Paths_raaz
  build-depends: base                           >= 4.5  && < 5.0
               , bytestring                     >= 0.9
               , deepseq
               , mtl                            >= 2.1
               , transformers
               , vector

  c-sources: cbits/raaz/core/endian.c
           -- hash implementations
           , cbits/raaz/hash/sha1/portable.c
           , cbits/raaz/hash/blake256/portable.c
           , cbits/raaz/hash/sha256/portable.c
           , cbits/raaz/hash/sha512/portable.c
	   -- ciphers
           , cbits/raaz/cipher/aes/common.c
           , cbits/raaz/cipher/aes/cportable.c
  include-dirs: cbits
  includes: raaz/core/endian.h
          -- ciphers
          , raaz/cipher/aes/common.h
          , raaz/cipher/aes/cportable.h
  install-includes: raaz/core/endian.h
                  , raaz/cipher/aes/common.h
                  , raaz/cipher/aes/cportable.h
executable checksum
  hs-source-dirs: bin
  main-is: checksum.lhs
  build-depends: base     >= 4.5 && < 5.0
               , raaz     == 0.0.2

test-Suite spec
  type: exitcode-stdio-1.0
  hs-source-dirs: spec
  main-is: Spec.hs
  ghc-options: -Wall
  other-modules: Common
               , Common.Cipher
               , Common.Hash
               , Common.Imports
               , Common.Instances
               , Common.Utils
               , Raaz.Cipher.AESSpec
               , Raaz.Core.EncodeSpec
               , Raaz.Core.MemorySpec
               , Raaz.Core.SystemPRGSpec
               , Raaz.Core.Types.WordSpec
               , Raaz.Core.Util.ByteStringSpec
               , Raaz.Hash.Sha1Spec
               , Raaz.Hash.Sha224Spec
               , Raaz.Hash.Sha256Spec
               , Raaz.Hash.Sha384Spec
               , Raaz.Hash.Sha512Spec
               , Raaz.Hash.Blake256Spec


  build-depends: base                           >= 4.5 && < 5.0
               , bytestring                     >= 0.9
               , HUnit                          >= 1.2
               , QuickCheck                     >= 2.4
               , hspec
               , transformers
               , raaz                           == 0.0.2
               , vector

benchmark blaze-vs-write
  hs-source-dirs: benchmarks
  main-is: BlazeVsWrite.hs
  type: exitcode-stdio-1.0
  build-depends: base
               , blaze-builder
               , bytestring
               , criterion
               , raaz