-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
95 lines (85 loc) · 2.29 KB
/
Cargo.toml
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
[package]
name = "rusty_paserk"
version = "0.4.0"
edition = "2021"
authors = ["Conrad Ludgate <conradludgate@gmail.com>"]
repository = "https://github.com/conradludgate/rusty-paserk"
description = "Platform Agnostic Serializable Keys (PASERK) is an extension on PASETO for key management"
license = "MIT"
keywords = ["paseto", "paserk", "token", "security"]
categories = [
"cryptography",
"authentication",
"encoding",
"network-programming",
"web-programming",
]
[features]
default = ["v4"]
# V3 contains NIST approved algoritms only
v3 = [
"dep:hmac",
"dep:aes",
"dep:ctr",
"dep:sha2",
"dep:p384",
"dep:pbkdf2",
"rusty_paseto/v3_local",
"rusty_paseto/v3_public",
]
# V4 is recommended
v4 = [
"dep:sha2",
"dep:blake2",
"dep:chacha20",
"dep:ed25519-dalek",
"dep:curve25519-dalek",
"dep:argon2",
"rusty_paseto/v4_local",
"rusty_paseto/v4_public"
]
serde = ["dep:serde"]
arbitrary = ["dep:arbitrary"]
[dependencies]
rusty_paseto = { version = "0.7.0", default-features = false, features = ["core"] }
subtle = "2.5.0"
generic-array = "0.14"
base64ct = "1.6.0"
base64 = "0.22.1"
cipher = "0.4.4"
digest = { version = "0.10.7", features = ["mac"] }
rand = "0.8.5"
# V4
chacha20 = { version = "0.9.1", optional = true }
blake2 = { version = "0.10.6", optional = true }
ed25519-dalek = { version = "2.0.0", features = ["hazmat"], optional = true }
curve25519-dalek = { version = "4.0.0", optional = true }
argon2 = { version = "0.5.0", optional = true }
# V3
aes = { version = "0.8.2", optional = true }
ctr = { version = "0.9.2", optional = true }
hmac = { version = "0.12.1", optional = true }
sha2 = { version = "0.10.2", optional = true }
p384 = { version = "0.13.0", optional = true, features = ["ecdh", "pkcs8"] }
pbkdf2 = { version = "0.12.1", optional = true }
arbitrary = { version = "1.3", features = ["derive"], optional = true }
serde = { version = "1", optional = true }
[dev-dependencies]
rand = "0.8"
serde_json = "1"
serde = { version = "1", features = ["derive"] }
hex = "0.4"
ff = "0.13.0"
libtest-mimic = "0.7.3"
[profile.dev.package."*"]
opt-level = 2
debug = false
incremental = false
[[test]]
name = "test-vectors"
path = "tests/vectors.rs"
harness = false
# Properly document all features on docs.rs
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]