pub fn tpm_parse_command(
buf: &[u8],
) -> TpmResult<(TpmHandles, TpmCommandBody, TpmAuthCommands)>Expand description
Parses a command from a TPM command buffer.
ยงErrors
TpmError::DataTruncatedif the buffer is too smallTpmError::UnknownDiscriminantif the buffer contains an unsupported command code or unexpected byteTpmError::TrailingDataif the command has after spurious data left