pub fn inject(&mut self, secret: &Secret, guest: usize) -> Result<()> {
        let launch_secret = LaunchSecret::new(&secret.header, guest, &secret.ciphertext[..]);
        let mut cmd = Command::from(self.sev, &launch_secret);
        LAUNCH_SECRET
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;
        Ok(())
    }
/// Inject a secret into the guest.
///
/// ## Remarks
///
/// This should only be called after a successful attestation flow.
Inject a secret into the guest.
Inject a secret into the guest .
pub fn inject(&mut self, secret: &Secret, guest: usize) -> Result<()> {
        let launch_secret = LaunchSecret::new(&secret.header, guest, &secret.ciphertext[..]);
        let mut cmd = Command::from(self.sev, &launch_secret);
        LAUNCH_SECRET
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;
        Ok(())
    }
pub fn inject ( & mut self , secret : & Secret , guest : usize ) -> Result < ( ) > { let launch_secret = LaunchSecret :: new ( & secret . header , guest , & secret . ciphertext [ .. ] ) ; let mut cmd = Command :: from ( self . sev , & launch_secret ) ; LAUNCH_SECRET . ioctl ( self . vm_fd , & mut cmd ) . map_err ( | e | cmd . encapsulate ( e ) ) ? ; Ok ( ( ) ) }
Inject a secret into the guest.
Inject a secret into the guest .
&mut self
secret
&Secret
guest
usize
remarks
This should only be called after a successful attestation flow.
This should only be called after a successful attestation flow .