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