mc_sgx_dcap_types/lib.rs
1// Copyright (c) 2022-2024 The MobileCoin Foundation
2
3#![doc = include_str!("../README.md")]
4#![no_std]
5#![deny(missing_docs, missing_debug_implementations, unsafe_code)]
6
7#[cfg(feature = "alloc")]
8extern crate alloc;
9
10#[cfg(feature = "tcb")]
11mod tcb;
12
13mod certification_data;
14
15#[cfg(feature = "alloc")]
16mod collateral;
17
18mod error;
19mod quote3;
20mod quoting_enclave;
21mod request_policy;
22
23pub use crate::{
24 certification_data::{
25 CertificationData, EcdsaSignatureAuxData, Pck, PckCertificateChain, PlatformManifest, Ppid,
26 PpidEncryptedRsa2048, PpidEncryptedRsa3072,
27 },
28 error::{QlError, Quote3Error},
29 quote3::{Quote3, SignatureData},
30 quoting_enclave::ReportInfo,
31 request_policy::RequestPolicy,
32};
33#[cfg(feature = "tcb")]
34pub use crate::{tcb::Error as TcbError, tcb::TcbInfo, tcb::COMPONENT_SVN_COUNT, tcb::FMSPC_SIZE};
35
36#[cfg(feature = "alloc")]
37pub use crate::collateral::{Collateral, Error as CollateralError};
38
39// TODO:
40//
41// "_sgx_ql_qe3_id_t",
42// "_sgx_ql_config_t",
43// "_sgx_ql_config_version_t",
44// "_sgx_ql_pck_cert_id_t",
45// "_sgx_ql_qve_collateral_param_t",
46// "_sgx_ql_qve_collateral_t",
47// "_sgx_ql_log_level_t",
48// "_sgx_prod_type_t",
49// "sgx_ql_logging_callback_t",
50// "_sgx_pce_error_t",
51// "_sgx_ql_request_policy",
52// "_sgx_pce_info_t",
53// "_sgx_ql_att_key_id_param_t",
54// "_sgx_ql_att_id_list_t",
55// "sgx_ql_attestation_algorithm_id_t",
56// "sgx_ql_cert_key_type_t",
57// "_sgx_ql_att_key_id_list_header_t",
58// "_sgx_ql_ppid_cleartext_cert_info_t",
59// "_sgx_ql_ppid_rsa2048_encrypted_cert_info_t",
60// "_sgx_ql_ppid_rsa3072_encrypted_cert_info_t",
61// "_sgx_ql_auth_data_t",
62// "_sgx_ql_certification_data_t",
63// "_sgx_ql_ecdsa_sig_data_t",
64// "_sgx_quote_header_t",
65// "_sgx_quote3_t",
66// "_sgx_ql_qv_result_t",
67// "_pck_cert_flag_enum_t",
68// "_sgx_ql_qv_supplemental_t",