-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathjose.cabal
184 lines (167 loc) · 3.9 KB
/
jose.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
cabal-version: 2.2
name: jose
version: 0.11
synopsis:
JSON Object Signing and Encryption (JOSE) and JSON Web Token (JWT) library
description:
.
Implementation of JSON Object Signing and Encryption
(JOSE) and JSON Web Token (JWT; RFC 7519).
.
The JSON Web Signature (JWS; RFC 7515) implementation is complete.
.
EdDSA signatures (RFC 8037) and secp256k1 (RFC 8812) are supported.
.
JWK Thumbprint (RFC 7638) is supported.
.
JSON Web Encryption (JWE; RFC 7516) is not yet implemented.
.
The __ECDSA implementation is vulnerable to timing attacks__ and
should only be used for verification.
homepage: https://github.com/frasertweedale/hs-jose
bug-reports: https://github.com/frasertweedale/hs-jose/issues
license: Apache-2.0
license-file: LICENSE
extra-source-files:
CHANGELOG.md
README.md
test/data/fido.jwt
author: Fraser Tweedale
maintainer: [email protected]
copyright: Copyright (C) 2013-2021 Fraser Tweedale
category: Cryptography
build-type: Simple
tested-with:
GHC ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1
flag demos
description: Build demonstration programs
default: False
common common
default-language: Haskell2010
ghc-options:
-Wall
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Werror=missing-methods
if impl(ghc >= 8.0)
ghc-options:
-Wcompat
-Wnoncanonical-monad-instances
-Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options:
-fhide-source-paths
if impl(ghc >= 8.4)
ghc-options:
-Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.10)
ghc-options:
-Wunused-packages
if impl(ghc >= 9.0)
ghc-options:
-Winvalid-haddock
-Werror=unicode-bidirectional-format-characters
if impl(ghc >= 9.2)
ghc-options:
-Wimplicit-lift
-Woperator-whitespace
-Wredundant-bang-patterns
if impl(ghc >= 9.4)
ghc-options:
-Wredundant-strictness-flags
build-depends:
base >= 4.13 && < 5
, bytestring >= 0.10 && < 0.13
, lens >= 4.16
, mtl >= 2.2.1
library
import: common
exposed-modules:
Crypto.JOSE
Crypto.JOSE.Compact
Crypto.JOSE.Error
Crypto.JOSE.Header
Crypto.JOSE.JWE
Crypto.JOSE.JWK
Crypto.JOSE.JWK.Store
Crypto.JOSE.JWS
Crypto.JOSE.Types
Crypto.JWT
Crypto.JOSE.AESKW
Crypto.JOSE.JWA.JWK
Crypto.JOSE.JWA.JWS
Crypto.JOSE.JWA.JWE
Crypto.JOSE.JWA.JWE.Alg
other-modules:
Crypto.JOSE.TH
Crypto.JOSE.Types.Internal
Crypto.JOSE.Types.URI
build-depends:
, aeson >= 2.0.1.0 && < 3
, base64-bytestring >= 1.2.1.0 && < 1.3
, concise >= 0.1
, containers >= 0.5
, crypton >= 0.31
, memory >= 0.7
, monad-time >= 0.3
, template-haskell >= 2.11
, text >= 1.1
, time >= 1.5
, network-uri >= 2.6
, crypton-x509 >= 1.7.6
hs-source-dirs: src
source-repository head
type: git
location: https://github.com/frasertweedale/hs-jose.git
test-suite tests
import: common
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Test.hs
other-modules:
AESKW
Examples
JWK
JWS
JWT
Properties
Types
build-depends:
, aeson
, base64-bytestring
, containers
, crypton
, time
, network-uri
, crypton-x509
, pem
, concise
, jose
, tasty
, tasty-hedgehog >= 1.2
, tasty-hspec >= 1.0
, hedgehog
, hspec
test-suite perf
import: common
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Perf.hs
build-depends:
jose
executable jose-example
import: common
if !flag(demos)
buildable: False
hs-source-dirs: example
main-is: Main.hs
other-modules:
KeyDB
JWS
build-depends:
aeson
, text
, unix
, jose