pub fn verify(
        mut self,
        build: Build,
        msr: launch::sev::Measurement,
    ) -> Result<Session<Verified>> {
        let digest = self.data.0.finish()?;
        let session = Session {
            policy: self.policy,
            tek: self.tek,
            tik: self.tik,
            data: Initialized,
        };

        session.verify(&digest, build, msr)
    }
/// Verifies the session's measurement against the AMD SP's measurement.
Verifies the session's measurement against the AMD SP's measurement.
Verifies the session ' s measurement against the AMD SP ' s measurement .
pub fn verify(
        mut self,
        build: Build,
        msr: launch::sev::Measurement,
    ) -> Result<Session<Verified>> {
        let digest = self.data.0.finish()?;
        let session = Session {
            policy: self.policy,
            tek: self.tek,
            tik: self.tik,
            data: Initialized,
        };
        session.verify(&digest, build, msr)
    }
pub fn verify ( mut self , build : Build , msr : launch :: sev :: Measurement , ) -> Result < Session < Verified > > { let digest = self . data . 0 . finish ( ) ? ; let session = Session { policy : self . policy , tek : self . tek , tik : self . tik , data : Initialized , } ; session . verify ( & digest , build , msr ) }
Verifies the session's measurement against the AMD SP's measurement.
Verifies the session ' s measurement against the AMD SP ' s measurement .
mut self
build
Build
msr
launch::sev::Measurement
mut self
build
Build
msr
launch::sev::Measurement