sigil-tee-material · sgx_dcap
Source declarations, signatures and documentation for sgx_dcap.
Source: sigil/node/sigil-tee-material/src/sgx_dcap.rs. SHA-256: 47e7c64d46f0acf4b415b5b91bc6b92e343a7d29b081df6d4c08569a6683279e.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
sgx_dcap::PCS_BASE
pub const PCS_BASE: &str;Source line: 29.
sgx_dcap::fetch_tcb_info
#[cfg(feature = "network")]
pub fn fetch_tcb_info(fmspc_hex: &str) -> Result<(String, Option<String>), ToolError>;Source line: 32.
sgx_dcap::validate_fmspc_hex
pub fn validate_fmspc_hex(fmspc_hex: &str) -> Result<(), ToolError>;Source line: 44.
sgx_dcap::normalized_fmspc_hex
pub fn normalized_fmspc_hex(fmspc_hex: &str) -> Result<String, ToolError>;Source line: 49.
sgx_dcap::fetch_qe_identity
#[cfg(feature = "network")]
pub fn fetch_qe_identity() -> Result<(String, Option<String>), ToolError>;Source line: 59.
sgx_dcap::fetch_pck_crl_platform
#[cfg(feature = "network")]
pub fn fetch_pck_crl_platform() -> Result<(Vec<u8>, Option<String>), ToolError>;Source line: 71.
sgx_dcap::validate
Validate an SGX DCAP material bundle and return the validated Intel SGX Root CA fingerprint + the TCB Signing Cert DER bytes.
pub fn validate(
pck_chain_pem_or_der: &[u8],
tcb_signing_cert_der: &[u8],
tcb_info_json: &str,
qe_identity_json: &str,
pck_crl_der: &[u8],
) -> Result<ValidatedSgx, ToolError>;Source line: 78.
sgx_dcap::ValidatedSgx
#[derive(Debug)]
pub struct ValidatedSgx {
pub root_fpr: [u8; 32],
pub root_der: Vec<u8>,
pub tcb_signing_cert_fpr: [u8; 32],
pub expires_at: Option<DateTime<Utc>>
}Source line: 173.
sgx_dcap::ValidatedSgx::from_der_material
pub fn from_der_material(root_der: &[u8], tcb_signing_cert_der: &[u8]) -> Self;Source line: 181.
sgx_dcap::ValidatedSgx::tcb_signing_cert_sha256_hex
pub fn tcb_signing_cert_sha256_hex(&self) -> String;Source line: 190.
sgx_dcap::parse_chain
pub fn parse_chain(input: &[u8]) -> Result<Vec<Vec<u8>>, ToolError>;Source line: 432.
sgx_dcap::emit_genesis_from_files
#[allow(clippy::too_many_arguments)]
pub fn emit_genesis_from_files(
pck_chain_path: &Path,
tcb_signing_cert_path: &Path,
tcb_info_path: &Path,
qe_identity_path: &Path,
pck_crl_path: &Path,
mrenclave_paths: &[&Path],
mrsigner_paths: &[&Path],
is_tdx: bool,
) -> Result<GenesisBundle, ToolError>;Source line: 644.