Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,26 @@ members = [
"crates/collaterals",
]
exclude = ["zkvm/risc0", "zkvm/risc0/guest"]

[workspace.dependencies]
alloy-sol-types = { version = "0.8.12" }
anyhow = { version = "1" }
chrono = { version = "0.4" }
der = { version = "0.7", features = ["alloc", "derive"] }
hex = { version = "0.4" }
log = { version = "0.4.8" }
p256 = { version = "0.13.2" }
pem = { version = "3", default-features = false }
proptest = { version = "1.6" }
reqwest = { version = "0.12.9", default-features = false, features = ["rustls-tls", "blocking", "hickory-dns"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
sha2 = { version = "0.10.8" }
sha3 = { version = "0.10.8" }
urlencoding = { version = "2" }
x509-parser = { version = "0.15.1" }
openssl = { git = "https://github.com/datachainlab/rust-openssl", rev = "1e4f9af40f9e2d74c9775482f7f5e6449cc7b8e1" }

dcap-types = { path = "crates/types" }
dcap-collaterals = { path = "crates/collaterals" }
dcap-quote-verifier = { path = "crates/quote-verifier" }
16 changes: 8 additions & 8 deletions crates/collaterals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1"
hex = "0.4"
x509-parser = "0.15.1"
der = { version = "0.7", features = ["alloc", "derive"] }
chrono = { version = "0.4" }
serde_json = { version = "1", features = ["preserve_order"] }
openssl = { git = "https://github.com/datachainlab/rust-openssl", rev = "6fdf2f32721719d173bf909c97e982fe4e2e2819" }
dcap-types = { path = "../types" }
anyhow = { workspace = true }
hex = { workspace = true }
x509-parser = { workspace = true }
der = { workspace = true }
chrono = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
openssl = { workspace = true }
dcap-types = { workspace = true }

[features]
default = []
Expand Down
16 changes: 8 additions & 8 deletions crates/pcs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = { version = "1" }
log = { version = "0.4.8" }
hex = { version = "0.4" }
urlencoding = { version = "2" }
pem = { version = "3", default-features = false }
reqwest = { version = "0.12.9", default-features = false, features = ["rustls-tls", "blocking", "hickory-dns"] }
dcap-types = { path = "../types" }
dcap-quote-verifier = { path = "../quote-verifier" }
anyhow = { workspace = true }
log = { workspace = true }
hex = { workspace = true }
urlencoding = { workspace = true }
pem = { workspace = true }
reqwest = { workspace = true }
dcap-types = { workspace = true }
dcap-quote-verifier = { workspace = true }

[features]
default = []
24 changes: 12 additions & 12 deletions crates/quote-verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ edition = "2021"
crate-type = ["lib"]

[dependencies]
hex = { version = "0.4" }
x509-parser = { version = "0.15.1" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
anyhow = { version = "1" }
p256 = { version = "0.13.2" }
sha2 = { version = "0.10.8" }
sha3 = { version = "0.10.8" }
alloy-sol-types = { version = "0.8.12" }
dcap-types = { path = "../types" }
hex = { workspace = true }
x509-parser = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
p256 = { workspace = true }
sha2 = { workspace = true }
sha3 = { workspace = true }
alloy-sol-types = { workspace = true }
dcap-types = { workspace = true }

[features]
default = []

[dev-dependencies]
serde_json = { version = "1.0", features = ["preserve_order"] }
dcap-collaterals = { path = "../collaterals" }
serde_json = { workspace = true, features = ["preserve_order"] }
dcap-collaterals = { workspace = true }
14 changes: 9 additions & 5 deletions crates/quote-verifier/src/tcb_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,17 @@ mod tests {
}
}
{
let pck_ca_crl = gen_crl_der(
&pck_certchain.pck_cert_ca,
&pck_certchain.pck_cert_ca_key,
vec![tcb_certchain.cert.clone()],
None,
// Generate another TCB signing cert from root CA to use as revoked cert
let another_tcb_key = gen_key();
let another_tcb_cert = gen_tcb_signing_ca(
&root_ca.cert,
&root_ca.key,
&another_tcb_key,
Validity::new_with_duration(1730000001, 1000),
)
.unwrap();
let root_ca_crl =
gen_crl_der(&root_ca.cert, &root_ca.key, vec![another_tcb_cert], None).unwrap();
let crls = IntelSgxCrls::new(
CertificateRevocationList::from_der(root_ca_crl.as_ref())
.unwrap()
Expand Down
12 changes: 6 additions & 6 deletions crates/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ edition = "2021"
crate-type = ["lib"]

[dependencies]
x509-parser = { version = "0.15.1" }
serde = { version = "1.0", features = ["derive"] }
chrono = { version = "0.4" }
anyhow = { version = "1" }
hex = { version = "0.4" }
x509-parser = { workspace = true }
serde = { workspace = true }
chrono = { workspace = true }
anyhow = { workspace = true }
hex = { workspace = true }

[features]
default = []

[dev-dependencies]
proptest = "1.6"
proptest = { workspace = true }
Loading