-
Notifications
You must be signed in to change notification settings - Fork 6
/
NaCl.cabal
148 lines (143 loc) · 4.47 KB
/
NaCl.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
cabal-version: 1.18
-- This file has been generated from package.yaml by hpack version 0.35.1.
--
-- see: https://github.com/sol/hpack
name: NaCl
version: 0.0.5.0
synopsis: Easy-and-safe-to-use high-level Haskell bindings to NaCl
description: This library uses <https://libsodium.org Sodium> under the hood,
but only exposes the primitives that are part of the “classic” NaCl
interface. We believe, it is better to be paranoid than sorry.
.
__Note: this package is experimental and WIP.__
.
Sodium is more portable, but some people prefer to stick to NaCl.
We agree that it is better to be paranoid than sorry.
That is why, even though this library uses
Sodium under the hood, it only exposes the primitives that
are part of the “classic” NaCl interface.
.
Sodium provides useful algorithms, that are not part of NaCl,
for example key derivation or random number generation.
If you need them too (you probably do), you should use
</package/crypto-sodium crypto-sodium> instead.
.
= Public-key cryptography
.
* Authenticated encryption: "NaCl.Box"
* Scalar multiplication: "NaCl.Scalarmult"
* Public-key signatures: "NaCl.Sign"
.
= Secret-key cryptography
.
* Authenticated encryption: "NaCl.Secretbox"
* Unauthenticated streaming encryption: "NaCl.Stream"
* Authentication: "NaCl.Auth"
.
= Low-level functions
.
* Hashing: "NaCl.Hash"
* String comparison: "NaCl.Verify"
category: Cryptography
homepage: https://github.com/serokell/haskell-crypto#readme
bug-reports: https://github.com/serokell/haskell-crypto/issues
author: Kirill Elagin <[email protected]>
maintainer: Serokell <[email protected]>
copyright: 2021 Serokell
license: MPL-2.0
license-file: LICENSES/MPL-2.0.txt
build-type: Simple
extra-doc-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/serokell/haskell-crypto
library
exposed-modules:
NaCl.Auth
NaCl.Auth.Internal
NaCl.Box
NaCl.Box.Internal
NaCl.Hash
NaCl.Hash.Internal
NaCl.Scalarmult
NaCl.Secretbox
NaCl.Secretbox.Internal
NaCl.Sign
NaCl.Sign.Internal
NaCl.Stream
NaCl.Stream.Internal
NaCl.Verify
other-modules:
Paths_NaCl
hs-source-dirs:
lib
default-extensions:
DataKinds
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
NumericUnderscores
OverloadedStrings
PolyKinds
ScopedTypeVariables
TypeApplications
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
build-depends:
base >=4.10 && <4.18
, bytestring >=0.9 && <0.12
, libsodium >=1.0.11 && <2
, memory >=0.14.15 && <0.19
, safe-exceptions ==0.1.*
default-language: Haskell2010
test-suite test
type: exitcode-stdio-1.0
main-is: Test.hs
other-modules:
Test.NaCl.Auth
Test.NaCl.Box
Test.NaCl.Hash
Test.NaCl.Scalarmult
Test.NaCl.Secretbox
Test.NaCl.Sign
Test.NaCl.Stream
Test.NaCl.Verify
Paths_NaCl
hs-source-dirs:
test
default-extensions:
DataKinds
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
NumericUnderscores
OverloadedStrings
PolyKinds
ScopedTypeVariables
TypeApplications
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
build-tool-depends:
tasty-discover:tasty-discover
build-depends:
HUnit
, NaCl
, base >=4.10 && <4.18
, base16 >=0.1.1 && <0.4
, bytestring >=0.9 && <0.12
, hedgehog
, libsodium >=1.0.11 && <2
, memory >=0.14.15 && <0.19
, safe-exceptions ==0.1.*
, tasty
, tasty-hedgehog
, tasty-hunit
default-language: Haskell2010