tpm_parse_command

Function tpm_parse_command 

Source
pub fn tpm_parse_command(
    buf: &[u8],
) -> TpmResult<(TpmHandles, TpmCommandBody, TpmAuthCommands)>
Expand description

Parses a command from a TPM command buffer.

ยงErrors

  • TpmErrorKind::Underflow if the buffer is too small
  • TpmErrorKind::NotDiscriminant if the buffer contains an unsupported command code or unexpected byte
  • TpmErrorKind::TrailingData if the command has after spurious data left