This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCargo.toml
69 lines (60 loc) · 2.92 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
[package]
name = "ocicrypt-rs"
version = "0.1.0"
description = "the OCI image spec implementation of container image encryption"
repository = "https://github.com/containers/ocicrypt-rs"
readme = "README.md"
license = "Apache-2.0"
authors = ["The ocicrypt Authors"]
edition = "2018"
[dependencies]
anyhow = ">=1.0"
aes = { version = ">=0.8", optional = true }
async-trait = { version = "0.1.61", optional = true }
attestation_agent = { git = "https://github.com/confidential-containers/attestation-agent.git", tag = "v0.6.0", optional = true }
base64 = "0.13"
base64-serde = { version = "0.6", optional = true }
cfg-if = "1.0.0"
ctr = { version = ">=0.9", optional = true }
hmac = { version = ">=0.12", optional = true }
josekit = { version = ">=0.7", optional = true }
kbc = { git = "https://github.com/confidential-containers/attestation-agent.git", tag = "v0.6.0", optional = true }
lazy_static = ">=1.4"
openssl = { version = ">=0.10", features = ["vendored"], optional = true }
pin-project-lite = { version = "0.2.9", optional = true }
protobuf = { version = "3.2.0", optional = true }
prost = { version = ">=0.11.0", optional = true }
ring = { version = "0.16.20", optional = true}
serde = { version = ">=1.0", features = ["derive"] }
serde_json = ">=1.0"
sha2 = { version = ">=0.10", optional = true }
tokio = { version = "1.17.0", features = ["rt-multi-thread"], optional = true }
tonic = { version = ">=0.8.0", optional = true }
ttrpc = { version = "0.7.1", features = ["async"], default-features = false, optional = true }
[build-dependencies]
tonic-build = {version = "0.8.0", optional = true }
ttrpc-codegen = { version = "0.4.1", optional = true }
[dev-dependencies]
aes-gcm = { version = "0.10" }
openssl = { version = ">=0.10", features = ["vendored"]}
tokio = { version = "1.17.0", features = ["time", "signal"] }
[features]
default = ["block-cipher-openssl", "keywrap-jwe", "keywrap-keyprovider-cmd"]
# Use eaa kbc to request KEK
eaa_kbc = ["keywrap-keyprovider-native", "attestation_agent/eaa_kbc"]
# Use cc kbc + occlum to request KEK
cc_kbc_occlum = ["keywrap-keyprovider-native", "attestation_agent/cc_kbc", "attestation_agent/occlum-attester"]
async-io = ["tokio"]
block-cipher = []
# Use ring as pseudo random number generator
block-cipher-ring = ["aes", "base64-serde", "ctr", "hmac", "ring", "pin-project-lite", "sha2", "block-cipher"]
# Use openssl as pseudo random number generator
block-cipher-openssl = ["aes", "base64-serde", "ctr", "hmac", "openssl", "pin-project-lite", "sha2", "block-cipher"]
keywrap-jwe = ["josekit"]
keywrap-keyprovider = []
keywrap-keyprovider-cmd = ["keywrap-keyprovider"]
keywrap-keyprovider-grpc = ["keywrap-keyprovider", "prost", "tonic", "tokio/net"]
keywrap-keyprovider-ttrpc = ["keywrap-keyprovider", "protobuf", "async-trait", "ttrpc", "tokio"]
keywrap-keyprovider-native = ["keywrap-keyprovider", "tokio/net", "tokio/sync", "attestation_agent"]
gen-proto-grpc = ["tonic-build"]
gen-proto-ttrpc = ["ttrpc-codegen"]