-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathblake2.cabal
108 lines (91 loc) · 2.25 KB
/
blake2.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
cabal-version: 3.0
name: blake2
version: 0.3.0.1
synopsis: A library providing BLAKE2
license: Unlicense
license-file: LICENSE
author: John Galt
maintainer: [email protected]
homepage: https://github.com/haskell-cryptography/blake2
bug-reports: https://github.com/haskell-cryptography/blake2/issues
category: Cryptography
description:
This library provides the <https://blake2.net/ BLAKE2> hash algorithms.
extra-source-files:
README.md
changelog.md
include/ref/*.h
include/sse/*.h
source-repository head
type: git
location: https://github.com/haskell-cryptography/blake2.git
flag hlint
flag llvm
default: False
manual: True
flag support_blake2_sse
description: Use SSE optimized version of BLAKE2
default: False
manual: True
common base
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs
build-depends:
, base ^>= 4.15 || ^>= 4.16 || ^>= 4.17 || ^>= 4.18
, bytestring ^>= 0.10.12 || ^>= 0.11
library
import: base
hs-source-dirs: src
exposed-modules:
Crypto.Hash.BLAKE2.BLAKE2b
Crypto.Hash.BLAKE2.BLAKE2bp
Crypto.Hash.BLAKE2.BLAKE2s
Crypto.Hash.BLAKE2.BLAKE2sp
Crypto.Hash.BLAKE2.Internal
cc-options: -std=c99
if arch(x86_64) || flag(support_blake2_sse)
c-sources:
cbits/sse/blake2b.c
cbits/sse/blake2bp.c
cbits/sse/blake2s.c
cbits/sse/blake2sp.c
include-dirs: include/sse
else
c-sources:
cbits/ref/blake2b-ref.c
cbits/ref/blake2bp-ref.c
cbits/ref/blake2s-ref.c
cbits/ref/blake2sp-ref.c
include-dirs: include/ref
if flag(llvm)
ghc-options: -fllvm
test-suite properties
import: base
type: exitcode-stdio-1.0
main-is: properties.hs
hs-source-dirs: tests
build-depends:
, base16-bytestring ^>= 1.0.0
, blake2
, QuickCheck ^>= 2.14.3
, tasty ^>= 1.4.3
, tasty-quickcheck ^>= 0.10.2
other-modules:
Imports
test-suite hlint
import: base
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: tests
if !flag(hlint)
buildable: False
else
build-depends: hlint ^>= 3.5
benchmark bench
import: base
type: exitcode-stdio-1.0
main-is: bench.hs
hs-source-dirs: benchmarks
build-depends:
, blake2
, criterion ^>= 1.6.2