Struct sgxs::sgxs::CanonicalSgxsReader [] [src]

pub struct CanonicalSgxsReader<'a, R: SgxsRead + 'a> {
    // some fields omitted
}

The CanonicalSgxsReader struct adds canonicalness checking to any SgxsRead reader.

An SGXS stream is canonical if - the first measurement blob is an ECREATE blob, and no other blobs are an ECREATE blob - the offset of every EADD blob does not have the lower 12 bits set - the offset of every EADD blob is higher than that of any previous EADD blob - the offset of every EEXTEND blob does not have the lower 12 bits set - the upper 52 bits of offsets of all EEXTEND blobs are equal to those of the preceding EADD blob - the lower 12 bits of offsets of all consecutive EEXTEND blobs are unique

Methods

impl<'a, R: SgxsRead + 'a> CanonicalSgxsReader<'a, R>
[src]

fn new(reader: &'a mut R) -> Self

Trait Implementations

impl<'a, R: SgxsRead + 'a> SgxsRead for CanonicalSgxsReader<'a, R>
[src]

fn read_meas(&mut self) -> Result<Option<Meas>>