pub fn tpm_parse_response(
cc: TpmCc,
buf: &[u8],
) -> TpmResult<TpmParseResult<'_>>Expand description
Parses a response from a TPM response buffer.
ยงErrors
TpmErrorKind::Boundaryif the buffer is too smallTpmErrorKind::InvalidTagif the tag in the buffer does not match expectedTpmErrorKind::InvalidDiscriminantif the buffer contains an unsupported command codeTpmErrorKind::TrailingDataif the response has after spurious data left