Function tpm_build_command

Source
pub fn tpm_build_command<'a, C>(
    command: &C,
    tag: TpmSt,
    handles: Option<&[u32]>,
    sessions: &[TpmsAuthCommand],
    writer: &mut TpmWriter<'_>,
) -> TpmResult<()>
where C: TpmHeader<'a>,
Expand description

Builds a TPM command into a writer and returns the total bytes written.

ยงErrors

  • TpmErrorKind::ValueTooLarge if the command has unknown state