diff --git a/Cargo.lock b/Cargo.lock index fc60f04..b7fe83d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1369,14 +1369,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "intel-tee-quote-verification-rs" -version = "0.2.1" -dependencies = [ - "intel-tee-quote-verification-sys", - "serde", -] - [[package]] name = "intel-tee-quote-verification-sys" version = "0.2.1" @@ -2524,7 +2516,6 @@ dependencies = [ "futures-core", "getrandom", "hex", - "intel-tee-quote-verification-rs", "num-integer", "num-traits", "p256", @@ -2538,6 +2529,7 @@ dependencies = [ "serde_with", "sha2", "signature", + "teepot-tee-quote-verification-rs", "testaso", "thiserror", "tracing", @@ -2561,6 +2553,14 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "teepot-tee-quote-verification-rs" +version = "0.2.1" +dependencies = [ + "intel-tee-quote-verification-sys", + "serde", +] + [[package]] name = "teepot-write" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index cd2a82f..077bc93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ authors = ["Harald Hoyer "] # has the standard Apache-2.0 OR MIT license license = "Apache-2.0 OR MIT" repository = "https://github.com/matter-labs/teepot" +homepage = "https://github.com/matter-labs/teepot" [workspace.dependencies] actix-http = "3" @@ -28,7 +29,7 @@ enumset = { version = "1.1", features = ["serde", "std"] } futures-core = { version = "0.3.30", features = ["alloc"], default-features = false } getrandom = "0.2.12" hex = { version = "0.4.3", features = ["std"], default-features = false } -intel-tee-quote-verification-rs = { path = "crates/intel-tee-quote-verification-rs" } +intel-tee-quote-verification-rs = { package = "teepot-tee-quote-verification-rs", path = "crates/teepot-tee-quote-verification-rs", version = "0.2.1" } intel-tee-quote-verification-sys = { version = "0.2.1" } k256 = "0.13" log = "0.4" diff --git a/crates/intel-tee-quote-verification-rs/Cargo.toml b/crates/teepot-tee-quote-verification-rs/Cargo.toml similarity index 62% rename from crates/intel-tee-quote-verification-rs/Cargo.toml rename to crates/teepot-tee-quote-verification-rs/Cargo.toml index 2177dd3..d9cdd22 100644 --- a/crates/intel-tee-quote-verification-rs/Cargo.toml +++ b/crates/teepot-tee-quote-verification-rs/Cargo.toml @@ -1,10 +1,13 @@ # Fork of the original crate: https://github.com/intel/SGXDataCenterAttestationPrimitives [package] -name = "intel-tee-quote-verification-rs" +name = "teepot-tee-quote-verification-rs" version = "0.2.1" edition = "2021" license = "BSD-3-Clause" +repository.workspace = true +homepage.workspace = true +description = "Fork of intel-tee-quote-verification-rs" [dependencies] intel-tee-quote-verification-sys.workspace = true diff --git a/crates/intel-tee-quote-verification-rs/License.txt b/crates/teepot-tee-quote-verification-rs/License.txt similarity index 100% rename from crates/intel-tee-quote-verification-rs/License.txt rename to crates/teepot-tee-quote-verification-rs/License.txt diff --git a/crates/intel-tee-quote-verification-rs/src/lib.rs b/crates/teepot-tee-quote-verification-rs/src/lib.rs similarity index 99% rename from crates/intel-tee-quote-verification-rs/src/lib.rs rename to crates/teepot-tee-quote-verification-rs/src/lib.rs index 5f0714c..82922a3 100644 --- a/crates/intel-tee-quote-verification-rs/src/lib.rs +++ b/crates/teepot-tee-quote-verification-rs/src/lib.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2024 Matter Labs + // SPDX-License-Identifier: BSD-3-Clause /* * Copyright (C) 2011-2021 Intel Corporation. All rights reserved. @@ -77,7 +80,7 @@ pub use qvl_sys::tee_supp_data_descriptor_t; /// /// # Examples /// ``` -/// use intel_tee_quote_verification_rs::*; +/// use teepot_tee_quote_verification_rs::*; /// /// let policy = sgx_ql_request_policy_t::SGX_QL_DEFAULT; /// let ret = sgx_qv_set_enclave_load_policy(policy); @@ -100,7 +103,7 @@ pub fn sgx_qv_set_enclave_load_policy(policy: sgx_ql_request_policy_t) -> quote3 /// /// # Examples /// ``` -/// use intel_tee_quote_verification_rs::*; +/// use teepot_tee_quote_verification_rs::*; /// /// let data_size = sgx_qv_get_quote_supplemental_data_size().unwrap(); /// @@ -200,7 +203,7 @@ pub fn sgx_qv_verify_quote( /// /// # Examples /// ``` -/// use intel_tee_quote_verification_rs::*; +/// use teepot_tee_quote_verification_rs::*; /// /// let data_size = tdx_qv_get_quote_supplemental_data_size().unwrap(); ///