Skip to main content

VerificationResult

Enum VerificationResult 

Source
#[non_exhaustive]
pub enum VerificationResult { Valid { fingerprint: String, status: TranscriptStatus, dry_run: bool, artifacts: Vec<ArtifactVerification>, image: Option<ImageManifest>, initrd: Option<InitrdMeasurements>, tpm_nonce: Option<String>, tpm_pcrs: BTreeMap<String, String>, }, Invalid { expected: String, computed: String, }, Incomplete { status: TranscriptStatus, events_count: usize, }, }
Expand description

Result of transcript verification.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Valid

Transcript is valid and fingerprint matches.

Fields

§fingerprint: String

Final SHA-256 fingerprint of the transcript chain.

§status: TranscriptStatus

Completion status recorded in the final event.

§dry_run: bool

Whether this was a dry run (no actual operations performed).

§artifacts: Vec<ArtifactVerification>

Artifact file verification results.

§image: Option<ImageManifest>

Build-time image manifest (from CeremonyStart).

§initrd: Option<InitrdMeasurements>

Boot-time initrd measurements (from CeremonyStart).

§tpm_nonce: Option<String>

Nonce from the first tpm_attest step evidence, if any.

§tpm_pcrs: BTreeMap<String, String>

PCR values from the first tpm_attest step evidence, if any.

Uses BTreeMap for deterministic display order.

§

Invalid

Transcript has been tampered with.

Fields

§expected: String

Expected hash (from the hash field of the final event).

§computed: String

Computed hash (recomputed from transcript content).

§

Incomplete

Transcript is incomplete (no final fingerprint).

Fields

§status: TranscriptStatus

Last recorded status.

§events_count: usize

Number of events parsed before the transcript ends.

Trait Implementations§

Source§

impl Debug for VerificationResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VerificationResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.