pub fn tpm_parse_response(cc: TpmCc, buf: &[u8]) -> TpmResult<TpmResponseResult>Expand description
Parses a response from a TPM response buffer.
ยงErrors
TpmErrorKind::Underflowif the buffer is too smallTpmErrorKind::NotDiscriminantif the buffer contains an unsupported command codeTpmErrorKind::TrailingDataif the response has after spurious data left