tpm_build_command

Function tpm_build_command 

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

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

ยงErrors

  • TpmErrorKind::ValueTooLarge if the command has unknown state