pub struct IntegrityEnvelope { /* private fields */ }Expand description
Canonical report plus a tamper-evident, non-authenticating digest.
Implementations§
Source§impl IntegrityEnvelope
impl IntegrityEnvelope
Sourcepub fn from_json(bytes: &[u8]) -> Result<Self, ReportError>
pub fn from_json(bytes: &[u8]) -> Result<Self, ReportError>
Parses bounded JSON, verifies the digest and validates every derived field.
Sourcepub fn canonical_bytes(&self) -> Result<Vec<u8>, ReportError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ReportError>
Returns canonical JSON bytes for storage or external attestation.
Sourcepub fn report(&self) -> &QualificationReport
pub fn report(&self) -> &QualificationReport
Returns the verified immutable report.
Sourcepub fn verify(&self) -> Result<(), ReportError>
pub fn verify(&self) -> Result<(), ReportError>
Recomputes integrity and all report evaluations.
Trait Implementations§
Source§impl Clone for IntegrityEnvelope
impl Clone for IntegrityEnvelope
Source§impl Debug for IntegrityEnvelope
impl Debug for IntegrityEnvelope
Source§impl<'de> Deserialize<'de> for IntegrityEnvelope
impl<'de> Deserialize<'de> for IntegrityEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IntegrityEnvelope
Source§impl PartialEq for IntegrityEnvelope
impl PartialEq for IntegrityEnvelope
Source§impl Serialize for IntegrityEnvelope
impl Serialize for IntegrityEnvelope
impl StructuralPartialEq for IntegrityEnvelope
Auto Trait Implementations§
impl Forget for IntegrityEnvelope
impl Freeze for IntegrityEnvelope
impl Move for IntegrityEnvelope
impl RefUnwindSafe for IntegrityEnvelope
impl Send for IntegrityEnvelope
impl Sync for IntegrityEnvelope
impl Unpin for IntegrityEnvelope
impl UnsafeUnpin for IntegrityEnvelope
impl UnwindSafe for IntegrityEnvelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more