pub fn quote(report: &Report) -> Result<Vec<u8>, Quote3Error> {
    unsafe {
        let mut quote_size = 0;
        err_code_to_result(get_quote_size(&mut quote_size))?;

        let mut quote = vec![0; quote_size as _];
        err_code_to_result(get_quote(&report, quote_size, quote.as_mut_ptr()))?;
        Ok(quote)
    }
}
/// Turn a `Report` into a quote.
///
/// Call the quoting enclave to get a quote. The quoting enclave will sign the
/// `Report` if the `Report` is valid and generated with the right `Targetinfo`.
Turn a `Report` into a quote.
Call the quoting enclave to get a quote.
Turn a ` Report ` into a quote . Call the quoting enclave to get a quote .
pub fn quote(report: &Report) -> Result<Vec<u8>, Quote3Error> {
    unsafe {
        let mut quote_size = 0;
        err_code_to_result(get_quote_size(&mut quote_size))?;
        let mut quote = vec![0; quote_size as _];
        err_code_to_result(get_quote(&report, quote_size, quote.as_mut_ptr()))?;
        Ok(quote)
    }
}
pub fn quote ( report : & Report ) -> Result < Vec < u8 > , Quote3Error > { unsafe { let mut quote_size = 0 ; err_code_to_result ( get_quote_size ( & mut quote_size ) ) ? ; let mut quote = vec ! [ 0 quote_size as ] ; err_code_to_result ( get_quote ( & report , quote_size , quote . as_mut_ptr ( ) ) ) ? ; Ok ( quote ) } }
Turn a `Report` into a quote.
Turn a ` Report ` into a quote .
report
&Report
report
&Report