fn quote_buffer_size(&self, sig_rl: &[u8]) -> u32 {
        // Refer to se_quote_internal.h and sgx_quote.h in the Intel SDK.
        let quote_length = 436 + 288 + 12 + 4 + 16;

        // Refer to epid/common/types.h in the Intel SDK.
        // This is the truly correct way to compute sig_length:
        //let nr_proof_length = 160;
        //let sig_length = 352 + 4 + 4 + sig_rl_entries * nr_proof_length;
        // Instead we do something that should be conservative, and doesn't
        // require interpreting the sig_rl structure to determine the entry
        // count. An nr_proof is 5 field elements, a sig_rl entry is four.
        // Add some slop for sig_rl headers.
        let sig_length = 352 + 4 + 4 + (sig_rl.len() as u32 * 5 / 4) + 128;

        quote_length + sig_length
    }
// The value returned here can depend on number of sigrl entries, and
// possibly other factors. Although why the client needs to pass a length
// in a protobuf API is beyond me.
The value returned here can depend on number of sigrl entries, and
possibly other factors. Although why the client needs to pass a length
in a protobuf API is beyond me.
The value returned here can depend on number of sigrl entries and possibly other factors . Although why the client needs to pass a length in a protobuf API is beyond me .
fn quote_buffer_size(&self, sig_rl: &[u8]) -> u32 {
        // Refer to se_quote_internal.h and sgx_quote.h in the Intel SDK.
        let quote_length = 436 + 288 + 12 + 4 + 16;
        // Refer to epid/common/types.h in the Intel SDK.
        // This is the truly correct way to compute sig_length:
        //let nr_proof_length = 160;
        //let sig_length = 352 + 4 + 4 + sig_rl_entries * nr_proof_length;
        // Instead we do something that should be conservative, and doesn't
        // require interpreting the sig_rl structure to determine the entry
        // count. An nr_proof is 5 field elements, a sig_rl entry is four.
        // Add some slop for sig_rl headers.
        let sig_length = 352 + 4 + 4 + (sig_rl.len() as u32 * 5 / 4) + 128;
        quote_length + sig_length
    }
fn quote_buffer_size ( & self , sig_rl : & [ u8 ] ) -> u32 { // Refer to se_quote_internal.h and sgx_quote.h in the Intel SDK. let quote_length = 436 + 288 + 12 + 4 + 16 ; // Refer to epid/common/types.h in the Intel SDK. // This is the truly correct way to compute sig_length: //let nr_proof_length = 160; //let sig_length = 352 + 4 + 4 + sig_rl_entries * nr_proof_length; // Instead we do something that should be conservative, and doesn't // require interpreting the sig_rl structure to determine the entry // count. An nr_proof is 5 field elements, a sig_rl entry is four. // Add some slop for sig_rl headers. let sig_length = 352 + 4 + 4 + ( sig_rl . len ( ) as u32 * 5 / 4 ) + 128 ; quote_length + sig_length }
The value returned here can depend on number of sigrl entries, and
possibly other factors.
The value returned here can depend on number of sigrl entries and possibly other factors .
&self
sig_rl
&[u8]
&self
sig_rl
&[u8]