You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/quote-verifier/src/quotes/mod.rs
+46-46Lines changed: 46 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,15 @@ use dcap_types::{EnclaveIdentityV2TcbStatus, Status, TcbInfoV3TcbStatus};
27
27
use dcap_types::{ECDSA_256_WITH_P256_CURVE,INTEL_QE_VENDOR_ID};
28
28
use x509_parser::certificate::X509Certificate;
29
29
30
-
/// common_verify_and_fetch_tcb is a common function that verifies the quote and fetches the TCB info
30
+
/// The TCB info of the QE
31
+
#[derive(Debug,Clone,PartialEq,Eq)]
32
+
pubstructQeTcb{
33
+
pubtcb_evaluation_data_number:u32,
34
+
pubtcb_status:EnclaveIdentityV2TcbStatus,
35
+
pubadvisory_ids:Vec<String>,
36
+
}
37
+
38
+
/// Verify the quote and return the TCB info of the QE, SGX extensions from the PCK leaf certificate, TCB info of the platform, and the validity intersection of all collaterals
31
39
///
32
40
/// # Arguments
33
41
///
@@ -45,13 +53,12 @@ use x509_parser::certificate::X509Certificate;
45
53
/// # Returns
46
54
///
47
55
/// * A tuple containing:
48
-
/// * The TCB status of the QE
49
-
/// * The advisory IDs of the QE
56
+
/// * The TCB info of the QE
50
57
/// * The SGX extensions from the PCK leaf certificate
51
-
/// * The TCB info
58
+
/// * The TCB info of the platform
52
59
/// * The validity intersection of all collaterals
0 commit comments