-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
113 lines (106 loc) · 3.25 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[package]
name = "cosmian_crypto_core"
version = "10.0.0"
authors = [
"Bruno GRIEDER <[email protected]>",
"Théophile BRÉZOT <[email protected]>",
"Emmanuel COSTE <[email protected]>",
]
categories = ["cryptography"]
edition = "2021"
keywords = ["cosmian", "crypto"]
license-file = "LICENSE.md"
repository = "https://github.com/Cosmian/crypto_core/"
description = "Cosmian base cryptographic library"
[lib]
crate-type = ["lib", "staticlib"]
name = "cosmian_crypto_core"
path = "src/lib.rs"
[features]
aes = ["aead", "aes-gcm"]
blake = ["blake2"]
certificate = ["curve25519", "x509-cert", "uuid", "pkcs8"]
chacha = ["aead", "chacha20poly1305", "chacha20"]
curve25519 = ["curve25519-dalek", "ed25519-dalek", "signature", "sha2"]
default = [
"aes",
"chacha",
"certificate",
"ecies",
"curve25519",
"certificate",
"nist_curves",
"rsa",
"ser",
"blake",
"sha3",
"rfc5649",
]
ecies = ["aead", "crypto_box"]
rsa = ["digest", "dep:rsa", "sha1", "sha2", "dep:sha3", "pkcs8", "rfc5649"]
nist_curves = ["p384", "p256", "p224", "p192", "elliptic-curve", "pkcs8"]
rfc5649 = ["aes", "chacha"]
ser = ["leb128"]
sha3 = ["tiny-keccak"]
[dependencies]
aead = { version = "0.5", features = ["stream"], optional = true }
aes-gcm = { version = "0.10", optional = true, features = ["zeroize"] }
blake2 = { version = "0.10", optional = true }
chacha20 = { version = "0.9", optional = true }
chacha20poly1305 = { version = "0.10", optional = true }
crypto_box = { version = "0.9.1", features = ["seal"], optional = true }
curve25519-dalek = { version = "4.1.3", optional = true }
digest = { version = "0.10", optional = true }
ed25519-dalek = { version = "2.1.1", optional = true, features = [
"default",
"hazmat",
] }
elliptic-curve = { version = "0.13.8", default-features = false, features = [
"hazmat",
"sec1",
"pkcs8",
"ecdh",
], optional = true }
getrandom = { version = "0.2", features = ["js"] } # needed to compile into WASM
leb128 = { version = "0.2", optional = true }
p192 = { version = "0.13", optional = true }
p224 = { version = "0.13", optional = true }
p256 = { version = "0.13", optional = true }
p384 = { version = "0.13", optional = true }
pkcs8 = { version = "0.10", features = [
"encryption",
"std",
"alloc",
"pem",
], optional = true }
rand_chacha = "0.3"
rand_core = { version = "0.6.4", features = ["getrandom"] }
rsa = { version = "0.9", optional = true }
sha1 = { version = "0.10", optional = true }
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
signature = { version = "2.2", optional = true }
tiny-keccak = { version = "2.0.2", features = ["shake"], optional = true }
uuid = { version = "1.11", features = ["v4"], optional = true }
x509-cert = { version = "0.2.5", features = [
"pem",
"std",
"builder",
"arbitrary",
"hazmat",
], optional = true }
zeroize = { version = "1.8", features = ["zeroize_derive"] }
[dev-dependencies]
criterion = "0.5"
libc = "0.2"
libsodium-sys-stable = "1.22.1"
openssl = { version = "0.10", features = ["vendored"] }
tempfile = "3.13"
[[bench]]
harness = false
name = "benches"
required-features = ["default"]
[profile.bench]
debug = true
[package.metadata.cargo-machete]
ignored = ["getrandom"]