-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
84 lines (71 loc) · 1.88 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
[package]
name = "kryoptic"
version = "0.1.0"
edition = "2021"
description = "A PKCS #11 software token written in Rust"
homepage = "https://github.com/latchset/kryoptic"
repository = "https://github.com/latchset/kryoptic"
license = "GPL-3.0"
[lib]
name = "kryoptic_pkcs11"
crate-type = ["cdylib"]
[[bin]]
name = "conformance"
path = "src/conformance/main.rs"
test = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
bindgen = "0.69"
pkg-config = "0.3"
[dependencies]
asn1 = "0.16.2"
bimap = "0.6.3"
bitflags = "2.4.1"
cfg-if = "1.0.0"
constant_time_eq = "0.3.0"
data-encoding = "2.4.0"
getrandom = "0.2.10"
hex = "0.4.3"
itertools = "0.13.0"
libc = "0.2.151"
num-bigint = "0.4.4"
num-integer = "0.1.45"
num-traits = "0.2.17"
once_cell = "1.18.0"
paste = "1.0.15"
rusqlite = { version = "0.31.0", optional = true }
serde = { version = "1.0.180", features = ["derive"] }
serde_json = "1.0.104"
serial_test = "3.1.1"
toml = { version = "0.8.19", default-features = false, features = ["display", "parse"] }
uuid = { version = "1.4.1", features = ["v4"] }
zeroize = "1.6.0"
[features]
aes = []
ecc = []
ecdsa = ["ecc"]
ecdh = ["ecc"]
eddsa = ["ecc"]
ec_montgomery = ["ecc"]
hash = []
hkdf = []
hmac = ["hash"]
pbkdf2 = []
rsa = []
sp800_108 = []
sshkdf = []
tlskdf = []
# Databases
jsondb = ["memorydb"]
memorydb = []
sqlitedb = [ "dep:rusqlite", "aes", "hmac", "pbkdf2" ]
nssdb = [ "dep:rusqlite", "aes", "hmac", "pbkdf2" ]
default = [ "sqlitedb" ]
ecc_all = ["ecdsa", "ec_montgomery", "eddsa", "ecdh"]
hash_all = ["hash", "hmac"]
kdf_all = [ "hkdf", "pbkdf2", "sp800_108", "sshkdf", "tlskdf" ]
standard = [ "ecc_all", "hash_all", "kdf_all", "rsa"]
ecc_fips = ["ecdsa", "ecdh"]
fips = [ "rusqlite/bundled", "aes", "ecc_fips", "hash_all", "kdf_all", "rsa"]
dynamic = [ ] # Builds against system libcrypto.so
slow = [] # Enables slow tests