tpm_parse_response

Function tpm_parse_response 

Source
pub fn tpm_parse_response(cc: TpmCc, buf: &[u8]) -> TpmResult<TpmResponseResult>
Expand description

Parses a response from a TPM response buffer.

ยงErrors

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