Function switchboard_attestation_client::sgx_dcap_quoteverify_rs::sgx_qv_get_quote_supplemental_data_size
source · pub fn sgx_qv_get_quote_supplemental_data_size() -> Result<u32, quote3_error_t>Expand description
Get SGX supplemental data required size.
Return
Size of the supplemental data in bytes.
Status code of the operation, one of:
- SGX_QL_ERROR_INVALID_PARAMETER
- SGX_QL_ERROR_QVL_QVE_MISMATCH
- SGX_QL_ENCLAVE_LOAD_ERROR
Examples
use sgx_dcap_quoteverify_rs::*;
let data_size = sgx_qv_get_quote_supplemental_data_size().unwrap();
assert_eq!(data_size, std::mem::size_of::<sgx_ql_qv_supplemental_t>() as u32);