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

  • TpmError::DataTruncated if the buffer is too small
  • TpmError::UnknownDiscriminant if the buffer contains an unsupported command code or unexpected byte
  • TpmError::TrailingData if the command has after spurious data left